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.
 
 
 

438 lines
9.5 KiB

{
"name": "Autocomplete Streets",
"priorityThresh": 1,
"endpoint": "autocomplete",
"notes": "When searching for an address, after an abbreviation for the place has been typed, continuing to type the placename should improve or keep the top result as the same (e.g. st, stre, street). Related to: https://github.com/pelias/pelias/issues/165",
"tests": [
{
"id": "1-1",
"status": "pass",
"user": "riordan",
"in": {
"text": "90 Vermilyea"
},
"expected": {
"priorityThresh": 2,
"properties": [
{
"layer": "address",
"housenumber": "90",
"street": "Vermilyea Avenue"
},
{
"layer": "address",
"housenumber": "90",
"street": "Vermilyea Avenue"
}
]
}
},
{
"id": "1-2",
"status": "pass",
"user": "riordan",
"in": {
"text": "90 Vermilyea A"
},
"expected": {
"priorityThresh": 2,
"properties": [
{
"layer": "address",
"housenumber": "90",
"street": "Vermilyea Avenue"
},
{
"layer": "address",
"housenumber": "90",
"street": "Vermilyea Avenue"
}
]
}
},
{
"id": "1-2",
"status": "pass",
"user": "riordan",
"in": {
"text": "90 Vermilyea Av"
},
"expected": {
"priorityThresh": 2,
"properties": [
{
"layer": "address",
"housenumber": "90",
"street": "Vermilyea Avenue"
},
{
"layer": "address",
"housenumber": "90",
"street": "Vermilyea Avenue"
}
]
}
},
{
"id": "1-3",
"status": "pass",
"user": "riordan",
"in": {
"text": "90 Vermilyea Ave"
},
"expected": {
"priorityThresh": 2,
"properties": [
{
"layer": "address",
"housenumber": "90",
"street": "Vermilyea Avenue"
},
{
"layer": "address",
"housenumber": "90",
"street": "Vermilyea Avenue"
}
]
}
},
{
"id": "1-4",
"status": "pass",
"user": "riordan",
"in": {
"text": "90 Vermilyea Aven"
},
"expected": {
"priorityThresh": 2,
"properties": [
{
"layer": "address",
"housenumber": "90",
"street": "Vermilyea Avenue"
},
{
"layer": "address",
"housenumber": "90",
"street": "Vermilyea Avenue"
}
]
}
},
{
"id": "1-5",
"status": "pass",
"user": "riordan",
"in": {
"text": "90 Vermilyea Avenue"
},
"expected": {
"priorityThresh": 2,
"properties": [
{
"layer": "address",
"housenumber": "90",
"street": "Vermilyea Avenue"
},
{
"layer": "address",
"housenumber": "90",
"street": "Vermilyea Avenue"
}
]
}
},
{
"id": "2-1",
"status": "fail",
"user": "riordan",
"description": "Clay Ave should rank higher than Clayton Ave with this input",
"issue": "https://github.com/pelias/pelias/issues/331",
"in": {
"text": "424 Clay Av"
},
"expected": {
"properties": [
{
"layer": "address",
"housenumber": "424",
"street": "Clay Ave"
}
]
}
},
{
"id": "2-2",
"status": "pass",
"user": "riordan",
"description": [ "OA/OSM import order seems to matter so increase priorityThresh" ],
"in": {
"text": "424 Clay Ave"
},
"expected": {
"priorityThresh": 3,
"properties": [
{
"layer": "address",
"housenumber": "424",
"street": "Clay Ave"
},
{
"layer": "address",
"housenumber": "424",
"street": "Clay Avenue"
}
]
}
},
{
"id": "2-3",
"status": "pass",
"user": "riordan",
"in": {
"text": "424 Clay Avenu"
},
"expected": {
"properties": [
{
"layer": "address",
"housenumber": "424",
"street": "Clay Avenue"
}
]
}
},
{
"id": "2-4",
"status": "pass",
"user": "riordan",
"in": {
"text": "424 Clay Avenue"
},
"expected": {
"properties": [
{
"layer": "address",
"housenumber": "424",
"street": "Clay Avenue"
}
]
}
},
{
"id": "3-1",
"status": "pass",
"user": "riordan",
"in": {
"text": "198 Baker St",
"focus.point.lat": 42.102222,
"focus.point.lon": -75.911667
},
"expected": {
"properties": [
{
"layer": "address",
"housenumber": "198",
"street": "Baker Street"
}
]
}
},
{
"id": "3-2",
"status": "pass",
"user": "riordan",
"in": {
"text": "198 Baker Str",
"focus.point.lat": 42.102222,
"focus.point.lon": -75.911667
},
"expected": {
"properties": [
{
"layer": "address",
"housenumber": "198",
"street": "Baker Street"
}
]
}
},
{
"id": "3-3",
"status": "pass",
"user": "riordan",
"in": {
"text": "198 Baker Stre",
"focus.point.lat": 42.102222,
"focus.point.lon": -75.911667
},
"expected": {
"properties": [
{
"layer": "address",
"housenumber": "198",
"street": "Baker Street"
}
]
}
},
{
"id": "3-4",
"status": "pass",
"user": "riordan",
"in": {
"text": "198 Baker Street",
"focus.point.lat": 42.102222,
"focus.point.lon": -75.911667
},
"expected": {
"properties": [
{
"layer": "address",
"housenumber": "198",
"street": "Baker Street"
}
]
}
},
{
"id": "4-1",
"status": "pass",
"user": "riordan",
"in": {
"text": "451 Fog Hill"
},
"expected": {
"properties": [
{
"layer": "address",
"housenumber": "451",
"street": "Fog Hill Road"
}
]
}
},
{
"id": "4-2",
"status": "pass",
"user": "riordan",
"in": {
"text": "451 Fog Hill rd"
},
"expected": {
"properties": [
{
"layer": "address",
"housenumber": "451",
"street": "Fog Hill Road"
}
]
}
},
{
"id": "4-3",
"status": "pass",
"user": "riordan",
"in": {
"text": "451 Fog Hill Road"
},
"expected": {
"properties": [
{
"layer": "address",
"housenumber": "451",
"street": "Fog Hill Road"
}
]
}
},
{
"id": "5",
"status": "pass",
"user": "missinglink",
"description": "https://github.com/pelias/api/issues/370",
"in": {
"text": "Hämeenkatu 1, Tampere"
},
"expected": {
"properties": [
{
"layer": "address",
"housenumber": "1",
"street": "Hämeenkatu",
"locality": "Tampere",
"country": "Finland"
}
]
}
},
{
"id": "6",
"status": "pass",
"user": "missinglink",
"description": "query ending with a single digit",
"notes": [
"priorityThresh set to 5 as some sources contain the abbreviated",
"form Grolmanstr."
],
"in": {
"text": "grolmanstr 1"
},
"expected": {
"priorityThresh": 5,
"properties": [
{
"layer": "address",
"housenumber": "1",
"street": "Grolmanstraße"
}
]
}
},
{
"id": "7",
"status": "pass",
"user": "missinglink",
"description": [ "house number provided in 3rd position instead of 1st" ],
"in": {
"text": "glasgow street 18, kelburn, wellington"
},
"expected": {
"priorityThresh": 1,
"properties": [
{ "label": "18 Glasgow Street, Wellington, New Zealand" }
]
}
},
{
"id": "8",
"status": "pass",
"user": "missinglink",
"description": [ "house number provided in 3rd position instead of 1st" ],
"in": {
"text": "grolmanstrasse 51, charlottenburg, berlin"
},
"expected": {
"priorityThresh": 1,
"properties": [
{ "label": "Grolmanstraße 51, Berlin, Germany" }
]
}
},
{
"id": "9",
"status": "pass",
"user": "missinglink",
"description": [ "borough matching, no delimiter" ],
"in": {
"text": "190 dean street brooklyn"
},
"expected": {
"priorityThresh": 1,
"properties": [
{ "label": "190 Dean Street, Brooklyn, New York, NY, USA" }
]
}
}
]
}