-
Notifications
You must be signed in to change notification settings - Fork 5
/
Geocoding_response.dtd
44 lines (44 loc) · 1.24 KB
/
Geocoding_response.dtd
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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://github.com/route4me/route4me-json-schemas/blob/master/Geocoding_response.dtd",
"type": "object",
"title": "Geocoding_response",
"description": "Geocoding (forward and reverse) response JSON schema",
"properties": {
"address": {
"type": "string",
"title": "Address",
"description": "A geocoded address"
},
"lat": {
"type": "number",
"minimum": -90,
"maximum": 90,
"title": "Latitude",
"description": "Latitude"
},
"lng": {
"type": "number",
"minimum": -180,
"maximum": 180,
"title": "Longitude",
"description": "Longitude"
},
"type": {
"type": "string",
"enum": ["street_address", "premise", "airport", "establishment", "locality, political", "postal_code", "administrative_area_level_2, political", "political", "administrative_area_level_1, political", "country, political"],
"title": "Type",
"description": "Geocoded area level type"
},
"confidence": {
"type": "string",
"title": "Confidence",
"description": "Confidence (\"high\", \"medium\", \"low\")"
},
"original": {
"type": "string",
"title": "Original",
"description": "Content of the original string (an address or geopoint) sent by HTTP"
}
}
}