]> git.openstreetmap.org Git - rails.git/blobdiff - test/http/nominatim.yml
Don't send comment text when reopening a note
[rails.git] / test / http / nominatim.yml
index accaebf33aae157a4f966b80cf98c5a2bc5f6055..6e7f3c03b3379fb4888667671fcbfa97ac77cff6 100644 (file)
@@ -16,7 +16,7 @@
       <place place_id='109724' osm_type='node' osm_id='17044599' place_rank='30' boundingbox="51.7418469,51.7518469,-0.0156773,-0.0056773" lat='51.7468469' lon='-0.0106773' display_name='Broxbourne, Stafford Drive, Broxbourne, Hertfordshire, East of England, England, United Kingdom' class='railway' type='station' importance='0.111' icon='http://nominatim.openstreetmap.org/images/mapicons/transport_train_station2.p.20.png'><extratags></extratags></place>
     </searchresults>
 
-/reverse?accept-language=&lat=51.7632&lon=-0.0076&zoom=15:
+/reverse?accept-language=&format=xml&lat=51.7632&lon=-0.0076&zoom=15:
   code: 200
   body: |
     <?xml version="1.0" encoding="UTF-8"?>
@@ -33,7 +33,7 @@
       </addressparts>
     </reversegeocode>
 
-/reverse?accept-language=&lat=51.7632&lon=-0.0076&zoom=17:
+/reverse?accept-language=&format=xml&lat=51.7632&lon=-0.0076&zoom=17:
   code: 200
   body: |
     <?xml version="1.0" encoding="UTF-8"?>
         <country_code>gb</country_code>
       </addressparts>
     </reversegeocode>
+
+/reverse?accept-language=&format=xml&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=&amp;lat=13.7709&amp;lon=100.50507&amp;zoom=19'>
+      <result place_id="220797400" osm_type="way" osm_id="542901374" ref="MM Steak&amp;Grill" lat="13.7708691" lon="100.505073233221" boundingbox="13.7708162,13.7709465,100.5049978,100.5051344">MM Steak&amp;Grill, ถนนศรีอยุธยา, บางขุนพรหม, กรุงเทพมหานคร, เขตดุสิต, กรุงเทพมหานคร, 10300, ประเทศไทย</result>
+      <addressparts>
+        <restaurant>MM Steak&amp;Grill</restaurant>
+        <road>ถนนศรีอยุธยา</road>
+        <neighbourhood>บางขุนพรหม</neighbourhood>
+        <city>กรุงเทพมหานคร</city>
+        <suburb>เขตดุสิต</suburb>
+        <state>กรุงเทพมหานคร</state>
+        <postcode>10300</postcode>
+        <country>ประเทศไทย</country>
+        <country_code>th</country_code>
+      </addressparts>
+    </reversegeocode>