Mapping of Google "address components" to "address format"
ChristianAdamski opened this issue · 9 comments
Hey,
do you have further data on how to map the single address_components coming from the Google Geocoding API to the address formats?
The pretty simple example question would be which comes first in the address line 1, [Street] [Number] or [Number] [Street], the former i.e. US, the latter in Germany.
I cannot find any useful mapping data for this.
The issue might more complex than that. I'm maintaining the geolocation Drupal module, which allows to interact with the address Drupal module, which in turn is based on this data.
And now people come and tell me that in NYC the locality is not the city, but the neighborhood field, or that in Argentina the adminstrative area must be filled with something else etc.
Google in all these cases gives the correct formatted string, but I cannot find any mapping data from the single components to that formatted string.
I will look at your idea.later though, maybe it works out. Thanks so far
@lararennie I just checked: no micro-format from Google Geocoding. It's a plain string.
@lararennie thanks for your replay. That is the places API though, which is distinct from the basic geocoding API
I'm also thinking about related issues How to know which component corresponds to
i am facing a similar issue, i would also like to use the adr_address, but it is not available in the geocoding API @ChristianAdamski or @crazyshakalaka have you guys found a solution
I started to map this out manually :(
Similarly for OSM / Nominatim & Photon: