-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathplace.json
More file actions
executable file
·74 lines (74 loc) · 1.93 KB
/
Copy pathplace.json
File metadata and controls
executable file
·74 lines (74 loc) · 1.93 KB
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
{
"version": 1,
"request": {
"url": "http://www.mapquestapi.com/search/v4/place",
"method": "GET",
"authorization": {
"type": "QueryParam",
"keyParam": "key"
},
"params": {
"q": false,
"sort": true,
"page": false,
"pageSize": false,
"location": false,
"bbox": false,
"circle": false,
"corridor": false,
"category": false
},
"search": {
"key": "q"
},
"pagination": {
"type": "page",
"pageKey": "page",
"limitKey": "pageSize",
"maxCount": 50
}
},
"examples": {
"q": "'[-180, 180]'",
"sort": "'relevance'"
},
"response": {
"ctype": "application/json",
"tablePath": "$.results[*]",
"schema": {
"name": {
"target": "$.name",
"type": "string"
},
"country": {
"target": "$.place.properties.countryCode",
"type": "string"
},
"state": {
"target": "$.place.properties.stateCode",
"type": "string"
},
"city": {
"target": "$.place.properties.city",
"type": "string"
},
"address": {
"target": "$.place.properties.street",
"type": "string"
},
"postalCode": {
"target": "$.place.properties.postalCode",
"type": "string"
},
"coordinates": {
"target": "$.place.geometry.coordinates",
"type": "list"
},
"details": {
"target": "$.displayString",
"type": "string"
}
},
"orient": "records"
}
}