Method to access postcode_localities from google result #1505
-
Hello, I use the geocoder gem with the google API. In my app a user provides a postcode (not a full address) input. When a postcode covers more than one locality, google adds the optional field postcode_localities. Is there a way to access that data? I looked at the methods for the google class but couldn't find any. Do you plan on adding a method? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
alexreisner
May 15, 2021
Replies: 1 comment 1 reply
-
You can call the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
s21385
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can call the
#data
method on anyGeocoder::Result
object to access the full data structure returned by the API. Let me know if you can't find what you're looking for in there.