Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapping of Google "address components" to "address format" #119

Open
ChristianAdamski opened this issue Jan 25, 2017 · 9 comments
Open

Mapping of Google "address components" to "address format" #119

ChristianAdamski opened this issue Jan 25, 2017 · 9 comments

Comments

@ChristianAdamski
Copy link

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.

@lararennie
Copy link
Contributor

lararennie commented Jan 25, 2017 via email

@ChristianAdamski
Copy link
Author

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.

@ChristianAdamski
Copy link
Author

I will look at your idea.later though, maybe it works out. Thanks so far

@ChristianAdamski
Copy link
Author

@lararennie I just checked: no micro-format from Google Geocoding. It's a plain string.

@lararennie
Copy link
Contributor

lararennie commented Jan 26, 2017 via email

@ChristianAdamski
Copy link
Author

@lararennie thanks for your replay. That is the places API though, which is distinct from the basic geocoding API

@crazyshakalaka
Copy link

I'm also thinking about related issues How to know which component corresponds to

@devng
Copy link

devng commented May 5, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants