Distance.to
Search…
Response

Result

A DistanceAPI result consists of 2 main parts. The "points" array describes additional information about the waypoints of the requested route and the "steps" array describes distance, duration and travel information for the ways between each waypoints.
1
{
2
"points": [...],
3
"steps": [...]
4
}
Copied!

Points

The points array describes all waypoints along the requested route:
1
{
2
"points": [
3
{
4
"type": "Feature",
5
"properties": {
6
"type": "name",
7
"geocode": {
8
"id": 7,
9
"typ": "",
10
"name": "Berlin",
11
"lat": 52.523403,
12
"lng": 13.4114,
13
"visit": 10958617,
14
"lang": "de",
15
"formatted_address": "Berlin, Deutschland",
16
"country": "DE",
17
"moved": 1,
18
"checked": "de ",
19
"clean": 1,
20
"tz": "Europe/Berlin",
21
"regions": [
22
{
23
"id": 51477,
24
"name": "Deutschland",
25
"int": "Germany",
26
"name_en": "Germany",
27
"level": 2
28
},
29
{
30
"id": 62422,
31
"name": "Berlin",
32
"int": "Berlin",
33
"name_en": "Berlin",
34
"level": 4
35
},
36
{
37
"id": 16347,
38
"name": "Mitte",
39
"int": "Mitte",
40
"name_en": null,
41
"level": 9
42
},
43
{
44
"id": 16566,
45
"name": "Mitte",
46
"int": "Mitte",
47
"name_en": null,
48
"level": 10
49
}
50
]
51
},
52
"airports": [
53
{
54
"name": "Berlin-Tegel International Airport",
55
"icao": "EDDT",
56
"iata": "TXL",
57
"lat": 52.5597,
58
"lng": 13.2877,
59
"city": "Berlin",
60
"country": "Germany",
61
"distance": 9.291129591215062
62
},
63
{
64
"name": "Berlin-Tegel International Airport",
65
"icao": "EDDT",
66
"iata": "TXL",
67
"lat": 52.5597,
68
"lng": 13.2877,
69
"city": "Berlin",
70
"country": "Germany",
71
"distance": 9.291129591215062
72
},
73
{
74
"name": "Berlin-Schönefeld International Airport",
75
"icao": "EDDB",
76
"iata": "SXF",
77
"lat": 52.38,
78
"lng": 13.5225,
79
"city": "Berlin",
80
"country": "Germany",
81
"distance": 17.63921879423453
82
}
83
],
84
"stats": {
85
"antipodia": [
86
-166.58859999999999,
87
-52.523403
88
],
89
"equator": {
90
"distance": 5842.169356341,
91
"bearing": "S"
92
},
93
"northpole": 4168.515634322877,
94
"southpole": 15853.93626081537
95
}
96
},
97
"geometry": {
98
"type": "Point",
99
"coordinates": [
100
13.4114,
101
52.523403
102
]
103
}
104
},
105
{
106
"type": "Feature",
107
"properties": {
108
"type": "name",
109
"geocode": {
110
"id": 6,
111
"typ": "",
112
"name": "Hamburg",
113
"lat": 53.553406,
114
"lng": 9.992196,
115
"visit": 8759091,
116
"lang": "de",
117
"formatted_address": "Hamburg, Hamburg, Deutschland",
118
"country": "DE",
119
"moved": 1,
120
"checked": "de ",
121
"clean": 1,
122
"tz": "Europe/Berlin",
123
"regions": [
124
{
125
"id": 51477,
126
"name": "Deutschland",
127
"int": "Germany",
128
"name_en": "Germany",
129
"level": 2
130
},
131
{
132
"id": 62782,
133
"name": "Hamburg",
134
"int": "Hamburg",
135
"name_en": "Hamburg",
136
"level": 4
137
},
138
{
139
"id": 28971,
140
"name": "Hamburg-Mitte",
141
"int": "Hamburg-Mitte",
142
"name_en": null,
143
"level": 9
144
},
145
{
146
"id": 296011,
147
"name": "Neustadt",
148
"int": "Neustadt",
149
"name_en": null,
150
"level": 10
151
}
152
]
153
},
154
"airports": [
155
{
156
"name": "Hamburg Airport",
157
"icao": "EDDH",
158
"iata": "HAM",
159
"lat": 53.6304,
160
"lng": 9.98823,
161
"city": "Hamburg",
162
"country": "Germany",
163
"distance": 8.56803131953995
164
},
165
{
166
"name": "Hamburg Airport",
167
"icao": "EDDH",
168
"iata": "HAM",
169
"lat": 53.6304,
170
"lng": 9.98823,
171
"city": "Hamburg",
172
"country": "Germany",
173
"distance": 8.56803131953995
174
},
175
{
176
"name": "Hamburg-Finkenwerder Airport",
177
"icao": "EDHI",
178
"iata": "XFW",
179
"lat": 53.5353,
180
"lng": 9.83556,
181
"city": "Hamburg",
182
"country": "Germany",
183
"distance": 10.546580968714048
184
}
185
],
186
"stats": {
187
"antipodia": [
188
-170.007804,
189
-53.553406
190
],
191
"equator": {
192
"distance": 5956.736418256986,
193
"bearing": "S"
194
},
195
"northpole": 4053.948572406891,
196
"southpole": 15968.516797572453
197
}
198
},
199
"geometry": {
200
"type": "Point",
201
"coordinates": [
202
9.992196,
203
53.553406
204
]
205
}
206
}
207
]
208
}
Copied!

Steps

The steps array describes all routes between each waypoints:
1
"steps": [
2
{
3
"start": [
4
13.4114,
5
52.523403
6
],
7
"end": [
8
9.992196,
9
53.553406
10
],
11
"distance": {
12
"haversine": 255.73436986056421,
13
"greatCircle": 255.65447544186136,
14
"vincenty": 256.364192,
15
"radians": 0.0401277843810708,
16
"dagrees": 2.2991526862463414,
17
"flight": [
18
{
19
"start": "TXL",
20
"dest": "HAM",
21
"distance": 250.4652476791421,
22
"time": "0h 47min"
23
},
24
{
25
"start": "TXL",
26
"dest": "HAM",
27
"distance": 250.4652476791421,
28
"time": "0h 47min"
29
},
30
{
31
"start": "TXL",
32
"dest": "XFW",
33
"distance": 255.0300373121645,
34
"time": "0h 48min"
35
},
36
{
37
"start": "TXL",
38
"dest": "HAM",
39
"distance": 250.4652476791421,
40
"time": "0h 47min"
41
},
42
{
43
"start": "TXL",
44
"dest": "HAM",
45
"distance": 250.4652476791421,
46
"time": "0h 47min"
47
},
48
{
49
"start": "TXL",
50
"dest": "XFW",
51
"distance": 255.0300373121645,
52
"time": "0h 48min"
53
},
54
{
55
"start": "SXF",
56
"dest": "HAM",
57
"distance": 274.365865778507,
58
"time": "0h 49min"
59
},
60
{
61
"start": "SXF",
62
"dest": "HAM",
63
"distance": 274.365865778507,
64
"time": "0h 49min"
65
},
66
{
67
"start": "SXF",
68
"dest": "XFW",
69
"distance": 278.42069351973436,
70
"time": "0h 49min"
71
}
72
],
73
"foot": {
74
"distance": 285000,
75
"duration": 205770.2
76
},
77
"car": {
78
"distance": 288048,
79
"duration": 10873
80
}
81
},
82
"midpoint": {
83
"type": "Feature",
84
"properties": {
85
"type": "latlng",
86
"geocode": {},
87
"tz": "Europe/Berlin",
88
"regions": [
89
{
90
"id": 51477,
91
"name": "Deutschland",
92
"int": "Germany",
93
"name_en": "Germany",
94
"level": 2
95
},
96
{
97
"id": 62504,
98
"name": "Brandenburg",
99
"int": "Brandenburg",
100
"name_en": null,
101
"level": 4
102
},
103
{
104
"id": 62738,
105
"name": "Landkreis Prignitz",
106
"int": "Landkreis Prignitz",
107
"name_en": null,
108
"level": 6
109
},
110
{
111
"id": 1289786,
112
"name": "Wittenberge",
113
"int": "Wittenberge",
114
"name_en": null,
115
"level": 8
116
},
117
{
118
"id": 6910223,
119
"name": "Bentwisch",
120
"int": "Bentwisch",
121
"name_en": null,
122
"level": 9
123
}
124
],
125
"airports": [
126
{
127
"name": "Schwerin Parchim Airport",
128
"icao": "EDOP",
129
"iata": "SZW",
130
"lat": 53.427,
131
"lng": 11.7834,
132
"city": "Parchim",
133
"country": "Germany",
134
"distance": 42.05808061000665
135
},
136
{
137
"name": "Schwerin Parchim Airport",
138
"icao": "EDOP",
139
"iata": "SZW",
140
"lat": 53.427,
141
"lng": 11.7834,
142
"city": "Parchim",
143
"country": "Germany",
144
"distance": 42.05808061000665
145
},
146
{
147
"name": "Stendal-Borstel Airport",
148
"icao": "EDOV",
149
"iata": "ZSN",
150
"lat": 52.6289,
151
"lng": 11.8186,
152
"city": "Stendal",
153
"country": "Germany",
154
"distance": 47.356824697446264
155
}
156
],
157
"stats": {
158
"antipodia": [
159
-168.27777461177786,
160
-53.05065792096614
161
],
162
"equator": {
163
"distance": 5900.8158332695475,
164
"bearing": "S"
165
},
166
"northpole": 4109.869157394328,
167
"southpole": 15912.589879459474
168
}
169
},
170
"geometry": {
171
"type": "Point",
172
"coordinates": [
173
11.722225388222146,
174
53.05065792096614
175
]
176
}
177
},
178
"bearing": {
179
"exact": "WNW",
180
"rough": "W",
181
"bearing": 297.9699530000709
182
},
183
"time": 0
184
}
185
]
Copied!
Last modified 2yr ago
Copy link