]> git.openstreetmap.org Git - rails.git/blobdiff - test/http/geocoder_ca.yml
Merge remote-tracking branch 'upstream/pull/1580'
[rails.git] / test / http / geocoder_ca.yml
index 754885a5b691792b75674aafb8c39b084fd2e9f6..0fbaa105d84b6e679ac18be0833a0138960a6d66 100644 (file)
@@ -1,48 +1,54 @@
-/?geoit=XML&postal=A1B+2C3: |
-  <?xml version="1.0" encoding="UTF-8"?>
-  <geodata>
-    <latt>47.172520</latt>
-    <longt>-55.440515</longt>
-    <postal>A1B2C3</postal>
-    <standard>
-      <stnumber>1</stnumber>
-      <staddress/>
-      <city>ST. JOHN&amp;'S</city>
-      <prov>NL</prov>
-      <confidence>0.9</confidence>
-    </standard>
-  </geodata>
+/?geoit=XML&postal=A1B%202C3:
+  code: 200
+  body: |
+    <?xml version="1.0" encoding="UTF-8"?>
+    <geodata>
+        <latt>47.172520</latt>
+      <longt>-55.440515</longt>
+      <postal>A1B2C3</postal>
+      <standard>
+        <stnumber>1</stnumber>
+        <staddress/>
+        <city>ST. JOHN&amp;'S</city>
+        <prov>NL</prov>
+        <confidence>0.9</confidence>
+      </standard>
+    </geodata>
 
-/?geoit=XML&postal=k1a+0b1: |
-  <?xml version="1.0" encoding="UTF-8"?>
-  <geodata>
-    <latt>45.375437</latt>
-    <longt>-75.691041</longt>
-    <postal>K1A0B1</postal>
-    <standard>
-      <stnumber>1</stnumber>
-      <staddress/>
-      <city>OTTAWA</city>
-      <prov>ON</prov>
-      <confidence>0.9</confidence>
-    </standard>
-  </geodata>
+/?geoit=XML&postal=k1a%200b1:
+  code: 200
+  body: |
+    <?xml version="1.0" encoding="UTF-8"?>
+    <geodata>
+      <latt>45.375437</latt>
+      <longt>-75.691041</longt>
+      <postal>K1A0B1</postal>
+      <standard>
+        <stnumber>1</stnumber>
+        <staddress/>
+        <city>OTTAWA</city>
+        <prov>ON</prov>
+        <confidence>0.9</confidence>
+      </standard>
+    </geodata>
 
-/?geoit=XML&postal=Q0Q+0Q0: |
-  <?xml version="1.0" encoding="UTF-8"?>
-  <geodata>
-    <error>
-      <code>008</code>
-      <description>Your request did not produce any results. Check your spelling and try again.</description>
-    </error>
-    <latt/>
-    <longt>-</longt>
-    <postal>Q0Q0Q0</postal>
-    <standard>
-      <stnumber>1</stnumber>
-      <staddress/>
-      <city/>
-      <prov/>
-      <confidence>0.9</confidence>
-    </standard>
-  </geodata>
+/?geoit=XML&postal=Q0Q%200Q0:
+  code: 200
+  body: |
+    <?xml version="1.0" encoding="UTF-8"?>
+    <geodata>
+      <error>
+        <code>008</code>
+        <description>Your request did not produce any results. Check your spelling and try again.</description>
+      </error>
+      <latt/>
+      <longt>-</longt>
+      <postal>Q0Q0Q0</postal>
+      <standard>
+        <stnumber>1</stnumber>
+        <staddress/>
+        <city/>
+        <prov/>
+        <confidence>0.9</confidence>
+      </standard>
+    </geodata>