Use decoded strings when parsing XML responses from geocoders
Fixes #1690
This commit is contained in:
parent
2ef803b9df
commit
b77406ff38
3 changed files with 44 additions and 18 deletions
|
@ -51,3 +51,22 @@
|
|||
<country_code>gb</country_code>
|
||||
</addressparts>
|
||||
</reversegeocode>
|
||||
|
||||
/reverse?accept-language=&lat=13.7709&lon=100.50507&zoom=19:
|
||||
code: 200
|
||||
body: |
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<reversegeocode timestamp='Wed, 29 Nov 17 22:48:30 +0000' attribution='Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright' querystring='accept-language=&lat=13.7709&lon=100.50507&zoom=19'>
|
||||
<result place_id="220797400" osm_type="way" osm_id="542901374" ref="MM Steak&Grill" lat="13.7708691" lon="100.505073233221" boundingbox="13.7708162,13.7709465,100.5049978,100.5051344">MM Steak&Grill, ถนนศรีอยุธยา, บางขุนพรหม, กรุงเทพมหานคร, เขตดุสิต, กรุงเทพมหานคร, 10300, ประเทศไทย</result>
|
||||
<addressparts>
|
||||
<restaurant>MM Steak&Grill</restaurant>
|
||||
<road>ถนนศรีอยุธยา</road>
|
||||
<neighbourhood>บางขุนพรหม</neighbourhood>
|
||||
<city>กรุงเทพมหานคร</city>
|
||||
<suburb>เขตดุสิต</suburb>
|
||||
<state>กรุงเทพมหานคร</state>
|
||||
<postcode>10300</postcode>
|
||||
<country>ประเทศไทย</country>
|
||||
<country_code>th</country_code>
|
||||
</addressparts>
|
||||
</reversegeocode>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue