]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix bdd tests and docs
authorArtem Ziablytskyi <a.ziablytskyi@sportradar.com>
Thu, 7 Apr 2022 12:09:08 +0000 (14:09 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 7 Apr 2022 14:37:51 +0000 (16:37 +0200)
docs/api/Output.md
test/bdd/api/search/params.feature
test/bdd/api/search/queries.feature

index 961f48b8eb6bf8178f03adb3522300e86fd08491..07525a985da7f475fcf1f0ad02c6c3d4f5be9587 100644 (file)
@@ -127,7 +127,7 @@ formats depending on the API call.
   </result>
   <addressparts>
      <state>Bavaria</state>
-     <ISO3166-2-lvl4>DE-BY</state_code>
+     <ISO3166-2-lvl4>DE-BY</ISO3166-2-lvl4>
      <country>Germany</country>
      <country_code>de</country_code>
   </addressparts>
@@ -181,7 +181,7 @@ Additional information requested with `addressdetails=1`, `extratags=1` and
     <city>London</city>
     <state_district>Greater London</state_district>
     <state>England</state>
-    <ISO3166-2-lvl4>GB-ENG</state_code>
+    <ISO3166-2-lvl4>GB-ENG</ISO3166-2-lvl4>
     <postcode>SW1A 2DU</postcode>
     <country>United Kingdom</country>
     <country_code>gb</country_code>
index cc86e01bb90369a697dcaf2d984bc47382a79fa5..3f12f1c8f563e1c0ec751c14ac5a0ccf35b1722b 100644 (file)
@@ -34,7 +34,7 @@ Feature: Search queries
           | postcode     | 9495 |
           | country      | Liechtenstein |
           | country_code | li |
-          | ISO3166-2-lvl12 | LI-09 |
+          | ISO3166-2-lvl8 | LI-09 |
 
     Examples:
           | format |
index d141122e1c32f145be2ef30b68b76cf574e3dca3..d378d3f8d882af004ebe1e3182565fa927fec615 100644 (file)
@@ -15,7 +15,7 @@ Feature: Search queries
           | postcode     | 9497 |
           | country      | Liechtenstein |
           | country_code | li |
-          | ISO3166-2-lvl10  | LI-10 |
+          | ISO3166-2-lvl8  | LI-10 |
 
     Scenario: House number interpolation
         When sending json search query "Grosssteg 1023, Triesenberg" with address
@@ -42,7 +42,7 @@ Feature: Search queries
           | town          | Triesenberg |
           | country       | Liechtenstein |
           | country_code  | li |
-          | ISO3166-2-lvl10  | LI-10 |
+          | ISO3166-2-lvl8  | LI-10 |
 
     Scenario Outline: Housenumber 0 can be found
         When sending <format> search query "Gnalpstrasse 0" with address