]> git.openstreetmap.org Git - rails.git/blobdiff - test/http/geocoder_ca.yml
Testing, testing, testing...
[rails.git] / test / http / geocoder_ca.yml
diff --git a/test/http/geocoder_ca.yml b/test/http/geocoder_ca.yml
new file mode 100644 (file)
index 0000000..754885a
--- /dev/null
@@ -0,0 +1,48 @@
+/?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=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=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>