Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When trying to geocode a Chinese address, it is using a numerical value for the "state/province".
Comments
Comment #1
bojanz CreditAttribution: bojanz commentedThat's correct, those are ISO codes https://en.wikipedia.org/wiki/ISO_3166-2:CN
I'm not familiar with Geocoder to know what it might be doing wrong.
Comment #2
Cybnext CreditAttribution: Cybnext commentedI managed to write a little patch for Geocoder that pulls in the text value of the administrative area, and Google geocodes that just fine. However, that may be the completely wrong direction, but it works.
Comment #3
bojanz CreditAttribution: bojanz commentedThanks, good to know.
From my standpoint, it definitely feels like Geocoder should be using the ISO codes, they are the easiest to get right (compared to a name that might change or be wrong). But if Google doesn't process them correctly, then that's not much of an option.