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 geocoding Chinese addresses from Address module, the location is not right.
The problem was that the values in address array were something like this "CN-34", "CN-34-ea0b51-6285fe" , etc. I made a patch that search for the names of that string in the appropriate json files and return them into the address array.
Comment | File | Size | Author |
---|---|---|---|
#2 | geocoding_a_chinese-2797467-2.patch | 2.1 KB | joco_sp |
Comments
Comment #2
joco_sp CreditAttribution: joco_sp commentedThe patch
Comment #3
abhishek_10 CreditAttribution: abhishek_10 at OpenSense Labs commentedPlease share an example where chinese address does not work.I had tested with the following address
Park Hyatt Shanghai,100 Century Avenue, Pudong,Shanghai, China, 200120
and got the exact latitude and longitude (31.234315,121.508214)
Comment #4
joco_sp CreditAttribution: joco_sp commentedIt was a long time ago when I posted this issue and I can't remember. It is also a good reminder for me, to add an example the next time. Try different addresses. The only thing that I remember is that, the patch I made worked for me.
Comment #5
Pol