Open holmesworcester opened 5 years ago
Facing the same issue. Need to save locality. It is showing while typing but not saving in the database.
Hello everyone, any solution?
Same question here but with postal_code.
For the locality missing issue, one can directly have the same formatted address as shown in the drop-down list.
:fields="['formatted_address','address_components','geometry']"
Just add these fields and you will have formatted_address
key including locality in the place
object which is retrieved with v-on:placechanged
This worked for me.
Thanks for your work on this!
Right now I'm having a problem where, for addresses in Brooklyn, NY, nothing is returned for
locality
. I have no idea why this is. For addresses in smaller U.S. cities,locality
is the city.But I'm wondering if it's possible to get fields like
administrative_area_level_2
,sublocality
orneighborhood
so that I have other things to display if locality isn't returned.The Google Maps API docs seem to say that this is possible for reverse geocoding: https://developers.google.com/maps/documentation/geocoding/intro#reverse-example