]> git.openstreetmap.org Git - rails.git/blob - test/http/geocoder_ca.yml
look for extra place tags in Nominatim search results
[rails.git] / test / http / geocoder_ca.yml
1 /?geoit=XML&postal=A1B+2C3: 
2   code: 200 
3   body: |
4     <?xml version="1.0" encoding="UTF-8"?>
5     <geodata>
6         <latt>47.172520</latt>
7       <longt>-55.440515</longt>
8       <postal>A1B2C3</postal>
9       <standard>
10         <stnumber>1</stnumber>
11         <staddress/>
12         <city>ST. JOHN&amp;'S</city>
13         <prov>NL</prov>
14         <confidence>0.9</confidence>
15       </standard>
16     </geodata>
17
18 /?geoit=XML&postal=k1a+0b1:
19   code: 200 
20   body: |
21     <?xml version="1.0" encoding="UTF-8"?>
22     <geodata>
23       <latt>45.375437</latt>
24       <longt>-75.691041</longt>
25       <postal>K1A0B1</postal>
26       <standard>
27         <stnumber>1</stnumber>
28         <staddress/>
29         <city>OTTAWA</city>
30         <prov>ON</prov>
31         <confidence>0.9</confidence>
32       </standard>
33     </geodata>
34   
35 /?geoit=XML&postal=Q0Q+0Q0:
36   code: 200 
37   body: |
38     <?xml version="1.0" encoding="UTF-8"?>
39     <geodata>
40       <error>
41         <code>008</code>
42         <description>Your request did not produce any results. Check your spelling and try again.</description>
43       </error>
44       <latt/>
45       <longt>-</longt>
46       <postal>Q0Q0Q0</postal>
47       <standard>
48         <stnumber>1</stnumber>
49         <staddress/>
50         <city/>
51         <prov/>
52         <confidence>0.9</confidence>
53       </standard>
54     </geodata>