-
Notifications
You must be signed in to change notification settings - Fork 0
/
data_examples.json
462 lines (461 loc) · 13.1 KB
/
data_examples.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
{
"nosuchplace" : {
"result" :
{
"geocoded_waypoints" : [
{},
{
"geocoder_status" : "OK",
"partial_match" : true,
"place_id" : "EiU4NzUgQ2FzaG1lcmUgUmQsIEJvaXNlLCBJRCA4MzcwMiwgVVNB",
"types" : [ "route", "street_address" ]
}
],
"routes" : [],
"status" : "ZERO_RESULTS"
}
},
"example" : {
"url" : "https://maps.googleapis.com/maps/api/directions/json?origin=-43.590887,172.580774&destination=875%20cashmere%20road,christchurch&key=AIzaSyCnNSIiNWSOTO1nHxD7f-MTczEvXeBgAJo",
"result" :
{
"geocoded_waypoints" : [
{
"geocoder_status" : "OK",
"place_id" : "ChIJZ_z__8ohMm0RB-OcZpzwXHs",
"types" : [ "street_address" ]
},
{
"geocoder_status" : "OK",
"place_id" : "ChIJy3CZ0s4hMm0ROnA20hk114U",
"types" : [ "street_address" ]
}
],
"routes" : [
{
"bounds" : {
"northeast" : {
"lat" : -43.5908476,
"lng" : 172.5819768
},
"southwest" : {
"lat" : -43.594568,
"lng" : 172.577812
}
},
"copyrights" : "Map data ©2016 Google, MapData Sciences Pty Ltd, PSMA",
"legs" : [
{
"distance" : {
"text" : "0.7 km",
"value" : 676
},
"duration" : {
"text" : "1 min",
"value" : 62
},
"end_address" : "875 Cashmere Rd, Halswell, Christchurch 8025, New Zealand",
"end_location" : {
"lat" : -43.594568,
"lng" : 172.577812
},
"start_address" : "3 Sutherlands Rd, Halswell, Christchurch 8025, New Zealand",
"start_location" : {
"lat" : -43.5908476,
"lng" : 172.5810205
},
"steps" : [
{
"distance" : {
"text" : "0.3 km",
"value" : 314
},
"duration" : {
"text" : "1 min",
"value" : 19
},
"end_location" : {
"lat" : -43.59358049999999,
"lng" : 172.5819768
},
"html_instructions" : "Head \u003cb\u003esouth\u003c/b\u003e on \u003cb\u003eSutherlands Rd\u003c/b\u003e toward \u003cb\u003eCashmere Rd\u003c/b\u003e",
"polyline" : {
"points" : "xy`iGkfj|_@`IaB|Bk@^KNEJEJGXQ"
},
"start_location" : {
"lat" : -43.5908476,
"lng" : 172.5810205
},
"travel_mode" : "DRIVING"
},
{
"distance" : {
"text" : "0.4 km",
"value" : 362
},
"duration" : {
"text" : "1 min",
"value" : 43
},
"end_location" : {
"lat" : -43.594568,
"lng" : 172.577812
},
"html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e onto \u003cb\u003eCashmere Rd\u003c/b\u003e\u003cdiv style=\"font-size:0.9em\"\u003eDestination will be on the left\u003c/div\u003e",
"maneuver" : "turn-right",
"polyline" : {
"points" : "zjaiGklj|_@HTHRTb@PZNZN`@BDBL@HBJ?J@L@L?T?TAb@A|@@^?J@L@TDXHj@j@vDXjB"
},
"start_location" : {
"lat" : -43.59358049999999,
"lng" : 172.5819768
},
"travel_mode" : "DRIVING"
}
],
"traffic_speed_entry" : [],
"via_waypoint" : []
}
],
"overview_polyline" : {
"points" : "xy`iGkfj|_@~LmCn@QVMXQHT^v@`@v@Rf@DVFr@ClCDnAtAhJ"
},
"summary" : "Sutherlands Rd and Cashmere Rd",
"warnings" : [],
"waypoint_order" : []
}
],
"status" : "OK"
}
},
"long_example" : {
"url" : "https://maps.googleapis.com/maps/api/directions/json?origin=-43.590887,172.58077&destination=245%20wooldridge%20road,christchurch",
"result" :
{
"geocoded_waypoints" : [
{
"geocoder_status" : "OK",
"place_id" : "ChIJZ_z__8ohMm0RB-OcZpzwXHs",
"types" : [ "street_address" ]
},
{
"geocoder_status" : "OK",
"partial_match" : true,
"place_id" : "EjsyNDUgV29vbGRyaWRnZSBSZCwgSGFyZXdvb2QsIENocmlzdGNodXJjaCA4MDUxLCBOZXcgWmVhbGFuZA",
"types" : [ "route", "street_address" ]
}
],
"routes" : [
{
"bounds" : {
"northeast" : {
"lat" : -43.4878189,
"lng" : 172.5926433
},
"southwest" : {
"lat" : -43.590847,
"lng" : 172.5576089
}
},
"copyrights" : "Map data ©2016 Google",
"legs" : [
{
"distance" : {
"text" : "14.5 km",
"value" : 14503
},
"duration" : {
"text" : "21 mins",
"value" : 1234
},
"end_address" : "245 Wooldridge Rd, Harewood, Christchurch 8051, New Zealand",
"end_location" : {
"lat" : -43.4878189,
"lng" : 172.5664684
},
"start_address" : "3 Sutherlands Rd, Halswell, Christchurch 8025, New Zealand",
"start_location" : {
"lat" : -43.590847,
"lng" : 172.5810203
},
"steps" : [
{
"distance" : {
"text" : "0.9 km",
"value" : 949
},
"duration" : {
"text" : "1 min",
"value" : 56
},
"end_location" : {
"lat" : -43.5824426,
"lng" : 172.579245
},
"html_instructions" : "Head \u003cb\u003enorth\u003c/b\u003e on \u003cb\u003eSutherlands Rd\u003c/b\u003e toward \u003cb\u003eSparks Rd\u003c/b\u003e",
"polyline" : {
"points" : "xy`iGkfj|_@oAVQDg@HWB{@HcBRaBPiHr@mHx@aBPkO|AIDC@EDABEDKP"
},
"start_location" : {
"lat" : -43.590847,
"lng" : 172.5810203
},
"travel_mode" : "DRIVING"
},
{
"distance" : {
"text" : "1.6 km",
"value" : 1617
},
"duration" : {
"text" : "2 mins",
"value" : 96
},
"end_location" : {
"lat" : -43.5703621,
"lng" : 172.5903989
},
"html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e onto \u003cb\u003eSparks Rd\u003c/b\u003e",
"maneuver" : "turn-right",
"polyline" : {
"points" : "fe_iGg{i|_@EIIMW[QUKIWWyIyH_]gZkVeTwAqA{BoBGGGIQSIKKO"
},
"start_location" : {
"lat" : -43.5824426,
"lng" : 172.579245
},
"travel_mode" : "DRIVING"
},
{
"distance" : {
"text" : "1.2 km",
"value" : 1223
},
"duration" : {
"text" : "2 mins",
"value" : 101
},
"end_location" : {
"lat" : -43.5617948,
"lng" : 172.5810018
},
"html_instructions" : "At the roundabout, take the \u003cb\u003e1st\u003c/b\u003e exit onto \u003cb\u003eHendersons Rd\u003c/b\u003e",
"maneuver" : "roundabout-left",
"polyline" : {
"points" : "vy|hG_al|_@A@A@C@C?C?A?CAACCCa@d@uJ~KiL~MiL|MqC`DwGtH"
},
"start_location" : {
"lat" : -43.5703621,
"lng" : 172.5903989
},
"travel_mode" : "DRIVING"
},
{
"distance" : {
"text" : "1.2 km",
"value" : 1215
},
"duration" : {
"text" : "2 mins",
"value" : 124
},
"end_location" : {
"lat" : -43.5548626,
"lng" : 172.5926433
},
"html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e onto \u003cb\u003eState Highway 75\u003c/b\u003e",
"maneuver" : "turn-right",
"polyline" : {
"points" : "dd{hGgfj|_@wBqE]o@Yi@mAeCWg@uEeJ{CiGYm@{D{HOMa@w@eBoD}@iB_@u@aDoGWe@_@u@{@aB"
},
"start_location" : {
"lat" : -43.5617948,
"lng" : 172.5810018
},
"travel_mode" : "DRIVING"
},
{
"distance" : {
"text" : "1.3 km",
"value" : 1305
},
"duration" : {
"text" : "1 min",
"value" : 82
},
"end_location" : {
"lat" : -43.5486092,
"lng" : 172.5794749
},
"html_instructions" : "Turn \u003cb\u003eleft\u003c/b\u003e to stay on \u003cb\u003eState Highway 75\u003c/b\u003e",
"maneuver" : "turn-left",
"polyline" : {
"points" : "zxyhG_ol|_@aA|AI@QVUXQP}FzGo@t@q@v@_@f@_@d@U\\_@j@Yd@c@x@e@~@GLSd@]v@CJc@hAUx@Od@CPOb@w@`DOr@aDvOCLIZG^UdAYvAKp@Gl@Q|ACREd@Ih@QdACTCPAd@"
},
"start_location" : {
"lat" : -43.5548626,
"lng" : 172.5926433
},
"travel_mode" : "DRIVING"
},
{
"distance" : {
"text" : "0.1 km",
"value" : 144
},
"duration" : {
"text" : "1 min",
"value" : 17
},
"end_location" : {
"lat" : -43.54796899999999,
"lng" : 172.5780471
},
"html_instructions" : "At the roundabout, take the \u003cb\u003e2nd\u003c/b\u003e exit and stay on \u003cb\u003eState Highway 75\u003c/b\u003e",
"maneuver" : "roundabout-left",
"polyline" : {
"points" : "xqxhGu|i|_@@B?B@D?D@B?DAD?DAB?DADABCBABCBABC@A@A@C?A?A@A?C?A?Q\\EHGPGNO^?@Mb@ADIVGV"
},
"start_location" : {
"lat" : -43.5486092,
"lng" : 172.5794749
},
"travel_mode" : "DRIVING"
},
{
"distance" : {
"text" : "2.2 km",
"value" : 2233
},
"duration" : {
"text" : "4 mins",
"value" : 220
},
"end_location" : {
"lat" : -43.5310764,
"lng" : 172.5677826
},
"html_instructions" : "At the roundabout, take the \u003cb\u003e1st\u003c/b\u003e exit onto \u003cb\u003eSH 73\u003c/b\u003e",
"maneuver" : "roundabout-left",
"polyline" : {
"points" : "xmxhGysi|_@?B@B?D@D?B?D?DAB?DABADABABEFEBC@A@C@C@C?C?C?CA[Zy@fAc@f@g@l@[b@SXOTOZMRIPMZ}BfFo@tAs@vAgBfDGHGJGJa@r@y@rAW`@uAxBeAhBKLc@r@e@x@_@j@{@xAYb@[b@WVMLMLSNYRa@Ra@N[JYHe@HYDS@K?U@w@Cc@AmACY?W@cAF[BiAFuBPqE`@cCPi@Fg@DsCTaGd@}@FiEZO?U?Q?WAMAKCSEa@KQIQKOICAc@Y"
},
"start_location" : {
"lat" : -43.54796899999999,
"lng" : 172.5780471
},
"travel_mode" : "DRIVING"
},
{
"distance" : {
"text" : "0.9 km",
"value" : 896
},
"duration" : {
"text" : "1 min",
"value" : 76
},
"end_location" : {
"lat" : -43.5277034,
"lng" : 172.5580488
},
"html_instructions" : "Turn \u003cb\u003eleft\u003c/b\u003e to stay on \u003cb\u003eSH 73\u003c/b\u003e",
"maneuver" : "turn-left",
"polyline" : {
"points" : "fduhGssg|_@K?C?WIIAG@GBGHMLeAlFCPi@dCCRi@dCw@tDkB|IWtAS`Ag@|Bk@nCuAxGYlAGZMh@"
},
"start_location" : {
"lat" : -43.5310764,
"lng" : 172.5677826
},
"travel_mode" : "DRIVING"
},
{
"distance" : {
"text" : "3.1 km",
"value" : 3135
},
"duration" : {
"text" : "5 mins",
"value" : 278
},
"end_location" : {
"lat" : -43.50203459999999,
"lng" : 172.5576089
},
"html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e onto \u003cb\u003eAvonhead Rd\u003c/b\u003e",
"maneuver" : "turn-right",
"polyline" : {
"points" : "bothGyve|_@QI_Ac@cBy@yAs@wBeAqG{CeCmAwCyA_D{AmDeBwAo@aBw@cNwGw@_@ECEAGAEAE?E?E?E?IFoAL?@?@A??@?@?@A??@A@A@A@A??@A?A?A?A?A??AA?A??AA??AA??AAA?A?AAAs@FOEyDXkMdAgEZSBiCRi@DsAJeCT?BAB?BA@ABA@A@A@A?A?A@AAA@AAA??AA?AAAAAA?CAA?EqCTsCTI@oBN_DVSBwDXiAHq@FYBQBM@]DA?E@EBE@CBEDCD}@|AsCfFm@fAiHpM"
},
"start_location" : {
"lat" : -43.5277034,
"lng" : 172.5580488
},
"travel_mode" : "DRIVING"
},
{
"distance" : {
"text" : "1.6 km",
"value" : 1630
},
"duration" : {
"text" : "3 mins",
"value" : 165
},
"end_location" : {
"lat" : -43.4891345,
"lng" : 172.5659605
},
"html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e onto \u003cb\u003eRoydvale Ave\u003c/b\u003e",
"maneuver" : "turn-right",
"polyline" : {
"points" : "tnohGate|_@_@c@_EeFsCyDiAuAMOo@}@mA_Bi@q@aGyHCCECCCCAEAkD_A}Cw@uFuAqEiAmD_AsD}@oFsAeEcAg@MEBm@I"
},
"start_location" : {
"lat" : -43.50203459999999,
"lng" : 172.5576089
},
"travel_mode" : "DRIVING"
},
{
"distance" : {
"text" : "0.2 km",
"value" : 156
},
"duration" : {
"text" : "1 min",
"value" : 19
},
"end_location" : {
"lat" : -43.4878189,
"lng" : 172.5664684
},
"html_instructions" : "At the roundabout, continue straight onto \u003cb\u003eWooldridge Rd\u003c/b\u003e\u003cdiv style=\"font-size:0.9em\"\u003eDestination will be on the left\u003c/div\u003e",
"maneuver" : "roundabout-left",
"polyline" : {
"points" : "`~lhGghg|_@?@A??@A?A@A?A?A?A?A?AAA?AAAA?AA??AAA?A?AAA?CICA?AASGsA_@wA]YI"
},
"start_location" : {
"lat" : -43.4891345,
"lng" : 172.5659605
},
"travel_mode" : "DRIVING"
}
],
"traffic_speed_entry" : [],
"via_waypoint" : []
}
],
"overview_polyline" : {
"points" : "xy`iGkfj|_@aB\\_ALkPbBe\\nDQPKPEIa@i@]_@qJqI_{@ou@k@q@KOA@EBMAEGwKdMsY|\\iLvM}FqLcLeU{D{HOMgCgFwGuM{AwCaA|AI@g@p@oGlHaDzDu@hA}@~A_BjDmAtD{AjGwD`Ro@|CS~Ae@`EUzAEv@BR?TERKNKDI@S\\MZe@tAK\\GZBRATGPQNOBGAuAbBkAtAo@|@w@vAkCbGcBlD_ChEeJhO{AdCu@fAe@d@a@\\{@f@}@Z_ARm@Fa@@{AEgBC{AHeBJgIr@iJt@yOhAmAC_@Is@UiAq@O?a@KODUVwBxKeFnV}DhRa@hBMh@QIcD}AqEyBoU_LkYeNkAg@WAOFoANA@?BCDIDIAEIACs@FOEeS~AoKx@yE`@AFCHGDG@ECEIAGeHj@mHl@mIn@_AJUJ{EpIwIxO_FiG{G}I}JoMSKqWwGwWuGg@MEBm@IA@EBE?EAGMAEKCUIkD}@YI"
},
"summary" : "Avonhead Rd",
"warnings" : [],
"waypoint_order" : []
}
],
"status" : "OK"
}
}
}