Geocodio/docs

Fields Typo in Ruby Library Documentation

GoldenPavilion opened this issue · 1 comments

When implementing Geocodio integration and passing in parameters to .geocode(), the :fields parameter leads to a NameError.

NameError in ApiCallsController#call_geocodio
undefined local variable or method `w' for #<ApiCallsController:0x00000000025328> 

I believe this is a typo and that it should be the fields: parameter instead.

For example:

location = geocodio.geocode(['1109 N Highland St, Arlington VA'], :fields %w[census2010 census])

Should be:

location = geocodio.geocode(['1109 N Highland St, Arlington VA'], fields: %w[census2010 census])

This will likely need to be updated for each of the available appended fields.

This was resolved here: 2fc8596