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.
278 lines
6.9 KiB
278 lines
6.9 KiB
6 years ago
|
{
|
||
|
"name": "autocomplete focus",
|
||
|
"priorityThresh": 5,
|
||
|
"endpoint": "autocomplete",
|
||
|
"tests": [
|
||
|
{
|
||
|
"id": 1,
|
||
|
"status": "pass",
|
||
|
"user": "Diana",
|
||
|
"type": "dev",
|
||
|
"in": {
|
||
|
"focus.point.lat": 40.744243,
|
||
|
"focus.point.lon": -73.990342,
|
||
|
"text": "DiDi dumpling"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"label": "DiDi Dumpling, Manhattan, New York, NY, USA"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 2,
|
||
|
"status": "fail",
|
||
|
"user": "missinglink",
|
||
|
"notes": [ "NYC union square more important when focussed on NYC" ],
|
||
|
"type": "dev",
|
||
|
"in": {
|
||
|
"focus.point.lat": 40.744243,
|
||
|
"focus.point.lon": -73.990342,
|
||
|
"text": "union square"
|
||
|
},
|
||
|
"expected": {
|
||
|
"priorityThresh": 1,
|
||
|
"properties": [
|
||
|
{
|
||
|
"label": "Union Square, New York County, NY, USA"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 3,
|
||
|
"status": "fail",
|
||
|
"user": "missinglink",
|
||
|
"notes": [ "SF union square more important when focussed on SF" ],
|
||
|
"type": "dev",
|
||
|
"in": {
|
||
|
"focus.point.lat": 37.769316,
|
||
|
"focus.point.lon": -122.484223,
|
||
|
"text": "union square"
|
||
|
},
|
||
|
"expected": {
|
||
|
"priorityThresh": 1,
|
||
|
"properties": [
|
||
|
{
|
||
|
"label": "Union Square, San Francisco County, CA, USA"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 4,
|
||
|
"status": "pass",
|
||
|
"user": "missinglink",
|
||
|
"notes": [ "Berlin hard rock cafe more important when focussed on Berlin" ],
|
||
|
"type": "dev",
|
||
|
"in": {
|
||
|
"focus.point.lat": 52.5070540,
|
||
|
"focus.point.lon": 13.3217140,
|
||
|
"text": "hard rock cafe"
|
||
|
},
|
||
|
"expected": {
|
||
|
"priorityThresh": 1,
|
||
|
"properties": [
|
||
|
{
|
||
|
"label": "Hard Rock Cafe Berlin, Berlin, Germany"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 5,
|
||
|
"status": "pass",
|
||
|
"user": "missinglink",
|
||
|
"notes": [ "NYC hard rock cafe more important when focussed on NYC" ],
|
||
|
"type": "dev",
|
||
|
"in": {
|
||
|
"focus.point.lat": 40.744243,
|
||
|
"focus.point.lon": -73.990342,
|
||
|
"text": "hard rock cafe"
|
||
|
},
|
||
|
"expected": {
|
||
|
"priorityThresh": 1,
|
||
|
"properties": [
|
||
|
{
|
||
|
"label": "Hard Rock Cafe, Manhattan, New York, NY, USA"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 24,
|
||
|
"status": "fail",
|
||
|
"user": "riordan",
|
||
|
"notes": [ "ID is 24 to match ID from search.json. SF Zoo should show up in SF. Logged by @nvkelso in: https://github.com/pelias/pelias/issues/183" ],
|
||
|
"in": {
|
||
|
"focus.point.lat": 37.743618,
|
||
|
"focus.point.lon": -122.426117,
|
||
|
"text": "zoo"
|
||
|
},
|
||
|
"expected": {
|
||
|
"priorityThresh": 1,
|
||
|
"properties": [
|
||
|
{
|
||
|
"label": "San Francisco Zoo, San Francisco, CA, USA",
|
||
|
"name": "San Francisco Zoo"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 25,
|
||
|
"status": "pass",
|
||
|
"user": "randyme",
|
||
|
"notes": [ "Autocomplete is not prioritizing local address.",
|
||
|
"Issue filed in: https://github.com/pelias/pelias/issues/240" ],
|
||
|
"in": {
|
||
|
"focus.point.lat": 40.744131,
|
||
|
"focus.point.lon": -73.990424,
|
||
|
"text": "1 madison ave"
|
||
|
},
|
||
|
"expected": {
|
||
|
"priorityThresh": 2,
|
||
|
"properties": [
|
||
|
{
|
||
|
"layer": "address",
|
||
|
"housenumber": "1",
|
||
|
"street": "Madison Avenue",
|
||
|
"region": "New York",
|
||
|
"borough": "Manhattan",
|
||
|
"locality": "New York"
|
||
|
},
|
||
|
{
|
||
|
"layer": "address",
|
||
|
"housenumber": "1",
|
||
|
"street": "Madison Ave",
|
||
|
"region": "New York",
|
||
|
"borough": "Manhattan",
|
||
|
"locality": "New York"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 26,
|
||
|
"status": "pass",
|
||
|
"user": "missinglink",
|
||
|
"notes": [
|
||
|
"tight markering clustering around focus.",
|
||
|
"when given a query which matches many results, the chosen results",
|
||
|
"should be as 'tightly' clustered around the focus point as possible",
|
||
|
"note: this test is not ideal, I would really like to confirm this:",
|
||
|
"http://missinglink.embed.s3.amazonaws.com/pelias_clustering.png",
|
||
|
"however the test suite doesn't currently support this behaviour."
|
||
|
],
|
||
|
"in": {
|
||
|
"focus.point.lat": 40.744131,
|
||
|
"focus.point.lon": -73.990424,
|
||
|
"text": "w 26th st"
|
||
|
},
|
||
|
"expected": {
|
||
|
"priorityThresh": 1,
|
||
|
"distanceThresh": 100,
|
||
|
"properties": [
|
||
|
{
|
||
|
"region": "New York",
|
||
|
"borough": "Manhattan"
|
||
|
}
|
||
|
],
|
||
|
"coordinates": [
|
||
|
[ -73.990424, 40.744131 ]
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 27,
|
||
|
"status": "fail",
|
||
|
"user": "julian",
|
||
|
"notes": [
|
||
|
"Searching for New York City with a focus in Stamford, CT"
|
||
|
],
|
||
|
"issue": "https://github.com/pelias/pelias/issues/164",
|
||
|
"in": {
|
||
|
"focus.point.lat": 41.05343,
|
||
|
"focus.point.lon": -73.53873,
|
||
|
"text": "New York"
|
||
|
},
|
||
|
"expected": {
|
||
|
"priorityThresh": 1,
|
||
|
"distanceThresh": 100,
|
||
|
"properties": [
|
||
|
{
|
||
|
"name": "New York",
|
||
|
"layer": "locality",
|
||
|
"region": "New York"
|
||
|
}
|
||
|
],
|
||
|
"coordinates": [
|
||
|
[ -73.93827, 40.663931 ]
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 28,
|
||
|
"status": "fail",
|
||
|
"user": "julian",
|
||
|
"notes": [
|
||
|
"Searching for New York City with a focus in Stamford, CT"
|
||
|
],
|
||
|
"description": [
|
||
|
"currently marked as failing due to https://github.com/pelias/pelias/issues/330"
|
||
|
],
|
||
|
"issue": [
|
||
|
"https://github.com/pelias/pelias/issues/330",
|
||
|
"https://github.com/pelias/pelias/issues/164"
|
||
|
],
|
||
|
"in": {
|
||
|
"focus.point.lat": 41.05343,
|
||
|
"focus.point.lon": -73.53873,
|
||
|
"text": "New York, NY"
|
||
|
},
|
||
|
"expected": {
|
||
|
"priorityThresh": 1,
|
||
|
"distanceThresh": 100,
|
||
|
"properties": [
|
||
|
{
|
||
|
"name": "New York",
|
||
|
"layer": "locality",
|
||
|
"region": "New York"
|
||
|
}
|
||
|
],
|
||
|
"coordinates": [
|
||
|
[ -73.93827, 40.663931 ]
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 29,
|
||
|
"status": "pass",
|
||
|
"user": "julian",
|
||
|
"notes": [
|
||
|
"searching for San Francisco via autocomplete with a focus in NYC"
|
||
|
],
|
||
|
"issue": "https://github.com/pelias/pelias/issues/330",
|
||
|
"in": {
|
||
|
"focus.point.lat": 40.744131,
|
||
|
"focus.point.lon": -73.990424,
|
||
|
"text": "San Francisco"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"region": "California",
|
||
|
"name": "San Francisco",
|
||
|
"layer": "locality"
|
||
|
}
|
||
|
],
|
||
|
"coordinates": [
|
||
|
[ -122.431272, 37.778008 ]
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|