{ "name": "structured_postalcodes", "notes": "For testing postalcode structured searches", "priorityThresh": 1, "endpoint": "search/structured", "tests": [ { "id": "structuredpostal-1", "status": "fail", "issue": "https://github.com/pelias/pelias/issues/692", "user": "diana", "in": { "postalcode": "90210" }, "expected": { "properties": [ { "layer": "postalcode", "name": "90210", "locality": "Los Angeles", "region": "California" } ] } }, { "id": "structuredpostal-2", "status": "pass", "user": "diana", "in": { "postalcode": "LA1 1DL" }, "expected": { "properties": [ { "layer": "postalcode", "name": "LA1 1DL", "locality": "Lancaster", "country": "United Kingdom" } ] } }, { "id": "structuredpostal-3", "status": "fail", "issue": "https://github.com/pelias/pelias/issues/692", "user": "diana", "description": "fallback to postalcode when city is not found", "in": { "address": "not-an-address", "postalcode": "90210" }, "expected": { "properties": [ { "layer": "postalcode", "name": "90210", "locality": "Los Angeles", "region": "California" } ] } }, { "id": "structuredpostal-4", "status": "pass", "user": "julian", "description": "postalcode and country does not fall back to country", "issue": "https://github.com/pelias/api/issues/973", "in": { "postalcode": "83278", "country": "United States" }, "expected": { "properties": [ { "layer": "postalcode", "name": "83278", "county": "Custer County", "region": "Idaho" } ] } } ] }