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.
94 lines
2.1 KiB
94 lines
2.1 KiB
6 years ago
|
{
|
||
|
"name": "Result properties",
|
||
|
"priorityThresh": 1,
|
||
|
"tests": [
|
||
|
{
|
||
|
"id": 1,
|
||
|
"status": "pass",
|
||
|
"endpoint": "search",
|
||
|
"description": "test it in search results and OSM data",
|
||
|
"in": {
|
||
|
"text": "IHOP",
|
||
|
"focus.point.lon": -73.944108,
|
||
|
"focus.point.lat": 40.815263,
|
||
|
"layers": "venue"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"gid": "openstreetmap:venue:node:2562438641",
|
||
|
"layer": "venue",
|
||
|
"source": "openstreetmap",
|
||
|
"id": "node:2562438641",
|
||
|
"source_id": "node:2562438641"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 2,
|
||
|
"status": "pass",
|
||
|
"endpoint": "autocomplete",
|
||
|
"description": "test it in autocomplete results and WOF data",
|
||
|
"in": {
|
||
|
"text": "London",
|
||
|
"sources": "wof"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"gid": "whosonfirst:locality:101750367",
|
||
|
"layer": "locality",
|
||
|
"source": "whosonfirst",
|
||
|
"id": "101750367",
|
||
|
"source_id": "101750367"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 3,
|
||
|
"status": "pass",
|
||
|
"endpoint": "reverse",
|
||
|
"in": {
|
||
|
"point.lon": -73.989231,
|
||
|
"point.lat": 40.744022,
|
||
|
"layers": "venue"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"gid": "openstreetmap:venue:way:248143769",
|
||
|
"layer": "venue",
|
||
|
"id": "way:248143769",
|
||
|
"source": "openstreetmap",
|
||
|
"source_id": "way:248143769",
|
||
|
"name": "Flatiron Hotel"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": 4,
|
||
|
"status": "pass",
|
||
|
"description": "OSM venue",
|
||
|
"endpoint": "place",
|
||
|
"in": {
|
||
|
"ids": "openstreetmap:venue:node:4509430011"
|
||
|
},
|
||
|
"expected": {
|
||
|
"properties": [
|
||
|
{
|
||
|
"gid": "openstreetmap:venue:node:4509430011",
|
||
|
"layer": "venue",
|
||
|
"source": "openstreetmap",
|
||
|
"id": "node:4509430011",
|
||
|
"source_id": "node:4509430011",
|
||
|
"name": "INDAY"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|