X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/037585db3933a2954b43bd4b30ea5e30ade00be2..bcec47680db6fd07ea9932d15bb5588e8afcb1ce:/test/http/nominatim.yml?ds=sidebyside diff --git a/test/http/nominatim.yml b/test/http/nominatim.yml index 443149346..35070fa73 100644 --- a/test/http/nominatim.yml +++ b/test/http/nominatim.yml @@ -1,45 +1,72 @@ -/search?accept-language=&format=xml&q=Hoddesdon&viewbox=-0.559%2C51.766%2C0.836%2C51.217: | - <?xml version="1.0" encoding="UTF-8" ?> - <searchresults timestamp='Sun, 01 Mar 15 20:02:29 +0000' attribution='Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright' querystring='Hoddesdon' viewbox='-0.559,51.766,0.836,51.217' polygon='false' exclude_place_ids='110741' more_url='http://nominatim.openstreetmap.org/search?format=xml&exclude_place_ids=110741&viewbox=-0.559%2C51.766%2C0.836%2C51.217&q=Hoddesdon'> - <place place_id='110741' osm_type='node' osm_id='18007599' place_rank='18' boundingbox="51.7216709,51.8016709,-0.0512898,0.0287102" lat='51.7616709' lon='-0.0112898' display_name='Hoddesdon, Hertfordshire, East of England, England, United Kingdom' class='place' type='town' importance='0.50547792382382' icon='http://nominatim.openstreetmap.org/images/mapicons/poi_place_town.p.20.png'/> - </searchresults> +/search?accept-language=&extratags=1&format=xml&q=Hoddesdon&viewbox=-0.559,51.766,0.836,51.217: + code: 200 + body: | + <?xml version="1.0" encoding="UTF-8" ?> + <searchresults timestamp='Sun, 01 Mar 15 20:02:29 +0000' attribution='Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright' querystring='Hoddesdon' viewbox='-0.559,51.766,0.836,51.217' polygon='false' exclude_place_ids='110741' more_url='http://nominatim.openstreetmap.org/search?format=xml&exclude_place_ids=110741&viewbox=-0.559%2C51.766%2C0.836%2C51.217&q=Hoddesdon'> + <place place_id='110741' osm_type='node' osm_id='18007599' place_rank='18' boundingbox="51.7216709,51.8016709,-0.0512898,0.0287102" lat='51.7616709' lon='-0.0112898' display_name='Hoddesdon, Hertfordshire, East of England, England, United Kingdom' class='place' type='town' importance='0.50547792382382' icon='http://nominatim.openstreetmap.org/images/mapicons/poi_place_town.p.20.png'/> + </searchresults> -/search?accept-language=&format=xml&q=Broxbourne&viewbox=-0.559%2C51.766%2C0.836%2C51.217: | - <?xml version="1.0" encoding="UTF-8" ?> - <searchresults timestamp='Sun, 01 Mar 15 20:42:25 +0000' attribution='Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright' querystring='Broxbourne' viewbox='-0.559,51.766,0.836,51.217' polygon='false' exclude_place_ids='150696,127984131,109724' more_url='http://nominatim.openstreetmap.org/search?format=xml&exclude_place_ids=150696,127984131,109724&viewbox=-0.559%2C51.766%2C0.836%2C51.217&q=Broxbourne'> - <place place_id='150696' osm_type='node' osm_id='28825933' place_rank='20' boundingbox="51.7265723,51.7665723,-0.0390782,0.0009218" lat='51.7465723' lon='-0.0190782' display_name='Broxbourne, Hertfordshire, East of England, England, United Kingdom' class='place' type='suburb' importance='0.52141385408531' icon='http://nominatim.openstreetmap.org/images/mapicons/poi_place_village.p.20.png'/> - <place place_id='127984131' osm_type='relation' osm_id='2677978' place_rank='16' boundingbox="51.6808751,51.7806237,-0.114204,0.0145267" lat='51.73083995' lon='-0.0579457295222991' display_name='Broxbourne, Hertfordshire, East of England, England, United Kingdom' class='boundary' type='administrative' importance='0.46' icon='http://nominatim.openstreetmap.org/images/mapicons/poi_boundary_administrative.p.20.png'/> - <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'/> - </searchresults> +/search?accept-language=&extratags=1&format=xml&q=Broxbourne&viewbox=-0.559,51.766,0.836,51.217: + code: 200 + body: | + <?xml version="1.0" encoding="UTF-8" ?> + <searchresults timestamp='Sun, 01 Mar 15 20:42:25 +0000' attribution='Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright' querystring='Broxbourne' viewbox='-0.559,51.766,0.836,51.217' polygon='false' exclude_place_ids='150696,127984131,109724' more_url='http://nominatim.openstreetmap.org/search?format=xml&exclude_place_ids=150696,127984131,109724&viewbox=-0.559%2C51.766%2C0.836%2C51.217&q=Broxbourne'> + <place place_id='150696' osm_type='node' osm_id='28825933' place_rank='20' boundingbox="51.7265723,51.7665723,-0.0390782,0.0009218" lat='51.7465723' lon='-0.0190782' display_name='Broxbourne, Hertfordshire, East of England, England, United Kingdom' class='place' type='suburb' importance='0.52141385408531' icon='http://nominatim.openstreetmap.org/images/mapicons/poi_place_village.p.20.png'><extratags><tag key="wikipedia" value="en:Broxbourne"/></extratags></place> + <place place_id='127984131' osm_type='relation' osm_id='2677978' place_rank='16' boundingbox="51.6808751,51.7806237,-0.114204,0.0145267" lat='51.73083995' lon='-0.0579457295222991' display_name='Broxbourne, Hertfordshire, East of England, England, United Kingdom' class='boundary' type='administrative' importance='0.46' icon='http://nominatim.openstreetmap.org/images/mapicons/poi_boundary_administrative.p.20.png'><extratags><tag key="place" value="village"/></extratags></place> + <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: | - <?xml version="1.0" encoding="UTF-8"?> - <reversegeocode timestamp="Sun, 01 Mar 15 22:49:45 +0000" attribution="Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright" querystring="accept-language=&lat=51.7632&lon=-0.0076&zoom=15"> - <result place_id="150696" osm_type="node" osm_id="28825933" ref="Broxbourne" lat="51.7465723" lon="-0.0190782">Broxbourne, Hertfordshire, East of England, England, United Kingdom</result> - <addressparts> - <suburb>Broxbourne</suburb> - <city>Broxbourne</city> - <county>Hertfordshire</county> - <state_district>East of England</state_district> - <state>England</state> - <country>United Kingdom</country> - <country_code>gb</country_code> - </addressparts> - </reversegeocode> +/reverse?accept-language=&lat=51.7632&lon=-0.0076&zoom=15: + code: 200 + body: | + <?xml version="1.0" encoding="UTF-8"?> + <reversegeocode timestamp="Sun, 01 Mar 15 22:49:45 +0000" attribution="Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright" querystring="accept-language=&lat=51.7632&lon=-0.0076&zoom=15"> + <result place_id="150696" osm_type="node" osm_id="28825933" ref="Broxbourne" lat="51.7465723" lon="-0.0190782">Broxbourne, Hertfordshire, East of England, England, United Kingdom</result> + <addressparts> + <suburb>Broxbourne</suburb> + <city>Broxbourne</city> + <county>Hertfordshire</county> + <state_district>East of England</state_district> + <state>England</state> + <country>United Kingdom</country> + <country_code>gb</country_code> + </addressparts> + </reversegeocode> -/reverse?accept-language=&lat=51.7632&lon=-0.0076&zoom=17: | - <?xml version="1.0" encoding="UTF-8"?> - <reversegeocode timestamp="Sun, 01 Mar 15 22:58:16 +0000" attribution="Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright" querystring="accept-language=&lat=51.7632&lon=-0.0076&zoom=17"> - <result place_id="46484711" osm_type="way" osm_id="3489841" ref="A1170" lat="51.7634883" lon="-0.0088373">Dinant Link Road, Broxbourne, Hertfordshire, East of England, England, EN11 8HX, United Kingdom</result> - <addressparts> - <road>Dinant Link Road</road> - <suburb>Broxbourne</suburb> - <city>Broxbourne</city> - <county>Hertfordshire</county> - <state_district>East of England</state_district> - <state>England</state> - <postcode>EN11 8HX</postcode> - <country>United Kingdom</country> - <country_code>gb</country_code> - </addressparts> - </reversegeocode> +/reverse?accept-language=&lat=51.7632&lon=-0.0076&zoom=17: + code: 200 + body: | + <?xml version="1.0" encoding="UTF-8"?> + <reversegeocode timestamp="Sun, 01 Mar 15 22:58:16 +0000" attribution="Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright" querystring="accept-language=&lat=51.7632&lon=-0.0076&zoom=17"> + <result place_id="46484711" osm_type="way" osm_id="3489841" ref="A1170" lat="51.7634883" lon="-0.0088373">Dinant Link Road, Broxbourne, Hertfordshire, East of England, England, EN11 8HX, United Kingdom</result> + <addressparts> + <road>Dinant Link Road</road> + <suburb>Broxbourne</suburb> + <city>Broxbourne</city> + <county>Hertfordshire</county> + <state_district>East of England</state_district> + <state>England</state> + <postcode>EN11 8HX</postcode> + <country>United Kingdom</country> + <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>