mirror of https://github.com/pelias/docker.git
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
1.8 KiB
89 lines
1.8 KiB
6 years ago
|
{
|
||
|
"name": "/v1/search address",
|
||
|
"description": "addresses in Portland, OR",
|
||
|
"priorityThresh": 1,
|
||
|
"normalizers": {
|
||
|
"name": [
|
||
|
"toUpperCase",
|
||
|
"removeOrdinals",
|
||
|
"stripPunctuation",
|
||
|
"abbreviateDirectionals",
|
||
|
"abbreviateStreetSuffixes"
|
||
|
]
|
||
|
},
|
||
|
"tests": [
|
||
|
{
|
||
|
"id": 1,
|
||
|
"status": "pass",
|
||
|
"in": {
|
||
|
"text": "900 park street, tshwane, south africa"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"name": "900 Park Street",
|
||
|
"locality": "Tshwane",
|
||
|
"country_a": "ZAF"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 2,
|
||
|
"status": "pass",
|
||
|
"in": {
|
||
|
"text": "200 Smit Street, Hillbrow"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"match_type": "interpolated",
|
||
|
"name": "200 Smit Street",
|
||
|
"locality": "Hillbrow",
|
||
|
"region": "Gauteng",
|
||
|
"country_a": "ZAF"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 3,
|
||
|
"status": "fail",
|
||
|
"in": {
|
||
|
"text": "Marshall Street, Johannesburg"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"match_type": "exact",
|
||
|
"layer": "street",
|
||
|
"name": "Marshall Street",
|
||
|
"locality": "Johannesburg",
|
||
|
"region": "Gauteng",
|
||
|
"country_a": "ZAF"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 3.1,
|
||
|
"status": "fail",
|
||
|
"in": {
|
||
|
"text": "Marshall Street, Hillbrow"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"match_type": "exact",
|
||
|
"layer": "street",
|
||
|
"name": "Marshall Street",
|
||
|
"locality": "Hillbrow",
|
||
|
"region": "Gauteng",
|
||
|
"country_a": "ZAF"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|