You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

89 lines
2.0 KiB

{
"name": "search_postalcodes",
"notes": "For testing postalcode searches",
"priorityThresh": 1,
"tests": [
{
"id": "searchpostal-1",
"status": "fail",
"issue": "https://github.com/pelias/pelias/issues/692",
"user": "diana",
"in": {
"text": "90210"
},
"expected": {
"properties": [
{
"layer": "postalcode",
"name": "90210",
"locality": "Los Angeles",
"region": "California"
}
]
}
},
{
"id": "searchpostal-2",
"status": "pass",
"user": "diana",
"in": {
"text": "LA1 1DL"
},
"expected": {
"properties": [
{
"layer": "postalcode",
"name": "LA1 1DL",
"locality": "Lancaster",
"country": "United Kingdom"
}
]
}
},
{
"id": "searchpostal-3",
"status": "fail",
"issue": "https://github.com/pelias/pelias/issues/692",
"user": "diana",
"in": {
"text": "M2M 1C8"
},
"expected": {
"properties": [
{
"name": "M2M 1C8",
"postalcode": "M2M 1C8",
"postalcode_gid": "whosonfirst:postalcode:521433719",
"confidence": 1,
"match_type": "exact",
"accuracy": "centroid",
"country": "Canada",
"region": "Ontario",
"locality": "Toronto",
"label": "M2M 1C8, Toronto, ON, Canada"
}
]
}
},
{
"id": "searchpostal-4",
"status": "fail",
"issue": "https://github.com/pelias/pelias/issues/692",
"user": "diana",
"description": "fallback to postalcode when city is not found",
"in": {
"text": "not-an-address, 90210"
},
"expected": {
"properties": [
{
"layer": "postalcode",
"name": "90210",
"locality": "Los Angeles",
"region": "California"
}
]
}
}
]
}