-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
place.json
129 lines (128 loc) · 3.25 KB
/
place.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
"name": "GET /place",
"endpoint": "place",
"priorityThresh": 1,
"tests": [
{
"id": 1,
"status": "pass",
"description": "place endpoint should return the desired record",
"in": {
"ids": "openstreetmap:venue:node/2562438641"
},
"expected": {
"properties": [
{
"gid": "openstreetmap:venue:node/2562438641",
"layer": "venue",
"source": "openstreetmap",
"id": "node/2562438641"
}
]
}
},
{
"id": 2,
"status": "pass",
"issue": "https://github.com/pelias/api/issues/441",
"description": "shortened source name should also work",
"in": {
"ids": "osm:venue:node/2562438641"
},
"expected": {
"properties": [
{
"gid": "openstreetmap:venue:node/2562438641",
"layer": "venue",
"source": "openstreetmap",
"id": "node/2562438641"
}
]
}
},
{
"id": 3,
"status": "pass",
"description": "the correct OSM way should be returned even when there is an OSM node with the same ID",
"issue": "https://github.com/pelias/api/issues/317",
"in": {
"ids": "openstreetmap:venue:way/5013364"
},
"expected": {
"properties": [
{
"gid": "openstreetmap:venue:way/5013364",
"layer": "venue",
"source": "openstreetmap",
"id": "way/5013364"
}
]
}
},
{
"id": 4,
"status": "pass",
"description": "the place endpoint should return multiple results when multiple ids are specified",
"in": {
"ids": "whosonfirst:region:85688525,whosonfirst:locality:101928027"
},
"expected": {
"priorityThresh": 2,
"properties": [
{
"gid": "whosonfirst:region:85688525",
"layer": "region",
"source": "whosonfirst",
"id": "85688525",
"name": "North Dakota"
},
{
"gid": "whosonfirst:locality:101928027",
"layer": "locality",
"source": "whosonfirst",
"id": "101928027",
"name": "Cape Town"
}
]
}
},
{
"id": 5,
"status": "pass",
"description": "Records from other layers should not be returned",
"issue": "https://github.com/pelias/pelias/issues/643",
"in": {
"ids": "openstreetmap:address:node/2420772655"
},
"expected": {
"properties": [
{
"gid": "openstreetmap:address:node/2420772655",
"layer": "address",
"source": "openstreetmap",
"id": "node/2420772655"
}
]
}
},
{
"id": 6,
"status": "fail",
"description": "Records from other sources should not be returned",
"issue": "https://github.com/pelias/pelias/issues/672",
"in": {
"ids": "whosonfirst:locality:123"
},
"unexpected": {
"properties": [
{
"gid": "geonames:locality:123",
"layer": "locality",
"source": "geonames",
"id": "123"
}
]
}
}
]
}