]> git.openstreetmap.org Git - rails.git/blob - test/http/geonames.yml
Support returning a HTTP status code for the http stubs for testing
[rails.git] / test / http / geonames.yml
1 /search?lang=en&maxRows=20&q=Hoddesdon&username=dummy:
2   code: 200
3   body: |
4     <?xml version="1.0" encoding="UTF-8" standalone="no"?>
5     <geonames style="MEDIUM">
6       <totalResultsCount>1</totalResultsCount>
7       <geoname>
8         <toponymName>Hoddesdon</toponymName>
9         <name>Hoddesdon</name>
10         <lat>51.76148</lat>
11         <lng>-0.01144</lng>
12         <geonameId>2646807</geonameId>
13         <countryCode>GB</countryCode>
14         <countryName>United Kingdom</countryName>
15         <fcl>P</fcl>
16         <fcode>PPL</fcode>
17       </geoname>
18     </geonames>
19   
20 /search?lang=en&maxRows=20&q=Broxbourne&username=dummy:
21   code: 200
22   body: |
23     <?xml version="1.0" encoding="UTF-8" standalone="no"?>
24     <geonames style="MEDIUM">
25       <totalResultsCount>17</totalResultsCount>
26       <geoname>
27         <toponymName>Broxbourne</toponymName>
28         <name>Broxbourne</name>
29         <lat>51.74712</lat>
30         <lng>-0.01923</lng>
31         <geonameId>2654481</geonameId>
32         <countryCode>GB</countryCode>
33         <countryName>United Kingdom</countryName>
34         <fcl>P</fcl>
35         <fcode>PPL</fcode>
36       </geoname>
37       <geoname>
38         <toponymName>Broxbourne District</toponymName>
39         <name>Broxbourne District</name>
40         <lat>51.73026</lat>
41         <lng>-0.04821</lng>
42         <geonameId>7290563</geonameId>
43         <countryCode>GB</countryCode>
44         <countryName>United Kingdom</countryName>
45         <fcl>A</fcl>
46         <fcode>ADM3</fcode>
47       </geoname>
48       <geoname>
49         <toponymName>Cheshunt</toponymName>
50         <name>Cheshunt</name>
51         <lat>51.70791</lat>
52         <lng>-0.03739</lng>
53         <geonameId>2653232</geonameId>
54         <countryCode>GB</countryCode>
55         <countryName>United Kingdom</countryName>
56         <fcl>P</fcl>
57         <fcode>PPL</fcode>
58       </geoname>
59       <geoname>
60         <toponymName>Hoddesdon</toponymName>
61         <name>Hoddesdon</name>
62         <lat>51.76148</lat>
63         <lng>-0.01144</lng>
64         <geonameId>2646807</geonameId>
65         <countryCode>GB</countryCode>
66         <countryName>United Kingdom</countryName>
67         <fcl>P</fcl>
68         <fcode>PPL</fcode>
69       </geoname>
70       <geoname>
71         <toponymName>Waltham Cross</toponymName>
72         <name>Waltham Cross</name>
73         <lat>51.68905</lat>
74         <lng>-0.0333</lng>
75         <geonameId>2634842</geonameId>
76         <countryCode>GB</countryCode>
77         <countryName>United Kingdom</countryName>
78         <fcl>P</fcl>
79         <fcode>PPL</fcode>
80       </geoname>
81       <geoname>
82         <toponymName>Goffs Oak</toponymName>
83         <name>Goffs Oak</name>
84         <lat>51.71015</lat>
85         <lng>-0.0872</lng>
86         <geonameId>2648362</geonameId>
87         <countryCode>GB</countryCode>
88         <countryName>United Kingdom</countryName>
89         <fcl>P</fcl>
90         <fcode>PPL</fcode>
91       </geoname>
92       <geoname>
93         <toponymName>Wormley</toponymName>
94         <name>Wormley</name>
95         <lat>51.7324</lat>
96         <lng>-0.0242</lng>
97         <geonameId>2633535</geonameId>
98         <countryCode>GB</countryCode>
99         <countryName>United Kingdom</countryName>
100         <fcl>P</fcl>
101         <fcode>PPL</fcode>
102       </geoname>
103       <geoname>
104         <toponymName>Broxbourne</toponymName>
105         <name>Broxbourne</name>
106         <lat>-27.50314</lat>
107         <lng>151.378</lng>
108         <geonameId>8792801</geonameId>
109         <countryCode>AU</countryCode>
110         <countryName>Australia</countryName>
111         <fcl>S</fcl>
112         <fcode>HMSD</fcode>
113       </geoname>
114       <geoname>
115         <toponymName>Lee Valley White Water Centre</toponymName>
116         <name>Lee Valley White Water Centre</name>
117         <lat>51.68814</lat>
118         <lng>-0.01682</lng>
119         <geonameId>7670551</geonameId>
120         <countryCode>GB</countryCode>
121         <countryName>United Kingdom</countryName>
122         <fcl>S</fcl>
123         <fcode>FCL</fcode>
124       </geoname>
125       <geoname>
126         <toponymName>Cheshunt Railway Station</toponymName>
127         <name>Cheshunt Railway Station</name>
128         <lat>51.703</lat>
129         <lng>-0.024</lng>
130         <geonameId>6952282</geonameId>
131         <countryCode>GB</countryCode>
132         <countryName>United Kingdom</countryName>
133         <fcl>S</fcl>
134         <fcode>RSTN</fcode>
135       </geoname>
136       <geoname>
137         <toponymName>Theobalds Grove Railway Station</toponymName>
138         <name>Theobalds Grove Railway Station</name>
139         <lat>51.692</lat>
140         <lng>-0.035</lng>
141         <geonameId>6953715</geonameId>
142         <countryCode>GB</countryCode>
143         <countryName>United Kingdom</countryName>
144         <fcl>S</fcl>
145         <fcode>RSTN</fcode>
146       </geoname>
147       <geoname>
148         <toponymName>Waltham Cross Railway Station</toponymName>
149         <name>Waltham Cross Railway Station</name>
150         <lat>51.685</lat>
151         <lng>-0.027</lng>
152         <geonameId>6953801</geonameId>
153         <countryCode>GB</countryCode>
154         <countryName>United Kingdom</countryName>
155         <fcl>S</fcl>
156         <fcode>RSTN</fcode>
157       </geoname>
158       <geoname>
159         <toponymName>Rye House Station</toponymName>
160         <name>Rye House Station</name>
161         <lat>51.76938</lat>
162         <lng>0.00562</lng>
163         <geonameId>6691700</geonameId>
164         <countryCode>GB</countryCode>
165         <countryName>United Kingdom</countryName>
166         <fcl>S</fcl>
167         <fcode>RSTN</fcode>
168       </geoname>
169       <geoname>
170         <toponymName>Broxbourne Station</toponymName>
171         <name>Broxbourne Station</name>
172         <lat>51.74697</lat>
173         <lng>-0.01105</lng>
174         <geonameId>6691701</geonameId>
175         <countryCode>GB</countryCode>
176         <countryName>United Kingdom</countryName>
177         <fcl>S</fcl>
178         <fcode>RSTN</fcode>
179       </geoname>
180       <geoname>
181         <toponymName>Broxbornebury Park</toponymName>
182         <name>Broxbornebury Park</name>
183         <lat>51.75252</lat>
184         <lng>-0.03839</lng>
185         <geonameId>6286417</geonameId>
186         <countryCode>GB</countryCode>
187         <countryName>United Kingdom</countryName>
188         <fcl>S</fcl>
189         <fcode>CSTL</fcode>
190       </geoname>
191       <geoname>
192         <toponymName>Marriott Cheshunt</toponymName>
193         <name>Marriott Cheshunt</name>
194         <lat>51.7208</lat>
195         <lng>-0.0324</lng>
196         <geonameId>6512481</geonameId>
197         <countryCode>GB</countryCode>
198         <countryName>United Kingdom</countryName>
199         <fcl>S</fcl>
200         <fcode>HTL</fcode>
201       </geoname>
202       <geoname>
203         <toponymName>Cheshunt Community Hospital</toponymName>
204         <name>Cheshunt Community Hospital</name>
205         <lat>51.68396</lat>
206         <lng>-0.03951</lng>
207         <geonameId>6289233</geonameId>
208         <countryCode>GB</countryCode>
209         <countryName>United Kingdom</countryName>
210         <fcl>S</fcl>
211         <fcode>HSP</fcode>
212       </geoname>
213     </geonames>
214   
215 /countrySubdivision?lang=en&lat=51.7632&lng=-0.0076&username=dummy:
216   code: 200
217   body: |
218     <?xml version="1.0" encoding="UTF-8" standalone="no"?>
219     <geonames>
220       <countrySubdivision>
221         <countryCode>GB</countryCode>
222         <countryName>United Kingdom</countryName>
223         <adminCode1>ENG</adminCode1>
224         <adminName1>England</adminName1>
225         <code type="ISO3166-2">ENG</code>
226         <distance>0.0</distance>
227       </countrySubdivision>
228     </geonames>