When trying to geocode a Chinese address, it is using a numerical value for the "state/province".

Comments

bojanz’s picture

That'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.

Cybnext’s picture

I 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.

bojanz’s picture

Category: Bug report » Support request
Status: Active » Fixed

Thanks, 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.