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.
 
 
 

117 lines
2.5 KiB

{
"name": "address matching",
"priorityThresh": 5,
"endpoint": "search",
"tests": [
{
"id": 1,
"issue": "https://github.com/pelias/pelias/issues/424",
"description": "libpostal should understand street names without ordinal sufffixes",
"user": "dianashk",
"type": "dev",
"in": {
"text": "30 w 26 st"
},
"expected": {
"properties": [
{
"layer": "address",
"housenumber": "30",
"street": "West 26th Street"
}
]
}
},
{
"id": 2,
"status": "pass",
"user": "dianashk",
"type": "dev",
"in": {
"text": "507 hackney rd"
},
"expected": {
"properties": [
{
"housenumber": "507",
"street": "Hackney Road"
}
]
}
},
{
"id": 3,
"status": "pass",
"issue": "https://github.com/pelias/pelias/issues/296",
"description": "Need to decide if a result is more relevant when the house number matches or the street name",
"user": "dianashk",
"type": "dev",
"in": {
"text": "49 Kay Street"
},
"expected": {
"properties": [
{
"street": "Kay Street"
}
]
},
"unexpected": {
"properties": [
{
"street": "Kay Drive"
},
{
"street": "Kay Avenue"
},
{
"street": "Kay Road"
},
{
"street": "De Kay Street"
}
]
}
},
{
"id": 4,
"status": "pass",
"user": "dianashk",
"description": "postalcodes should not strip leading 0's",
"in": {
"text": "461 W Main St, Cheshire, 06410"
},
"expected": {
"properties": [
{
"postalcode": "06410",
"country": "United States",
"region": "Connecticut"
}
]
},
"unexpected": {
"properties": [
{
"postalcode": "6410"
}
]
}
},
{
"id": 5,
"status": "pass",
"user": "missinglink",
"description": [ "borough matching, no delimiter", "OA/OSM import order seems to matter so increase priorityThresh" ],
"in": {
"text": "190 dean street brooklyn"
},
"expected": {
"priorityThresh": 2,
"properties": [
{ "label": "190 Dean Street, Brooklyn, New York, NY, USA" }
]
}
}
]
}