-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdriving.dtd
80 lines (80 loc) · 2.74 KB
/
driving.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
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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://github.com/route4me/route4me-json-schemas/blob/master/driving.dtd",
"description": "Driving",
"title": "Driving",
"type": "object",
"required": [
"origin",
"destination",
"key"
],
"properties": {
"origin": {
"description": "The address, textual latitude/longitude value, or place ID from which you wish to calculate directions",
"type": "string"
},
"destination": {
"description": "The address, textual latitude/longitude value, or place ID to which you wish to calculate directions",
"type": "string"
},
"key": {
"description": "The address, textual latitude/longitude value, or place ID to which you wish to calculate directions",
"type": "string"
},
"mode": {
"description": "(defaults to driving) — Specifies the mode of transport to use when calculating directions (driving (default), walking, bicycling, transit)",
"type": "string"
},
"waypoints": {
"type": "array",
"items": {
"$ref": "https://github.com/route4me/route4me-json-schemas/blob/master/waypoint.dtd"
}
},
"alternatives": {
"description": "If set to true, specifies that the Directions service may provide more than one route alternative in the response",
"type": "boolean"
},
"avoid": {
"description": "Indicates that the calculated route(s) should avoid the indicated features ('tolls', 'highways', 'ferries', 'indoor')",
"type": "string"
},
"language": {
"description": "Specifies the language in which to return results ('en', 'bg', 'fr', 'de' etc)",
"type": "string"
},
"units": {
"description": "Specifies the unit system to use when displaying results ('metric', 'imperial')",
"type": "string",
"enum": [
"metric",
"imperial"
]
},
"region": {
"description": "Specifies the region code, specified as a ccTLD ('top-level domain') two-character value",
"type": "string"
},
"arrival_time": {
"description": "Specifies the desired time of arrival for transit directions, in seconds since midnight, January 1, 1970 UTC",
"type": "integer"
},
"departure_time": {
"description": "Specifies the desired time of departure. You can specify the time as an integer in seconds since midnight, January 1, 1970 UTC",
"type": "integer"
},
"traffic_model": {
"description": "Specifies the assumptions to use when calculating time in traffic (best_guess (default), pessimistic, optimistic)",
"type": "string"
},
"transit_mode": {
"description": "Specifies one or more preferred modes of transit (bus, subway, train, tram, rail)",
"type": "string"
},
"transit_routing_preference": {
"description": "Specifies preferences for transit routes (less_walking, fewer_transfers)",
"type": "string"
}
}
}