Created
July 3, 2023 03:47
-
-
Save afian/74b37108a5083e064891791725d144e2 to your computer and use it in GitHub Desktop.
Google Directions API response
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"geocoded_waypoints" : [ | |
{ | |
"geocoder_status" : "OK", | |
"place_id" : "ChIJyconjF9xhlQRC27qDW4xEj0", | |
"types" : [ "street_address" ] | |
}, | |
{ | |
"geocoder_status" : "OK", | |
"place_id" : "ChIJWSwFlCdyhlQRO7TzPAjWNds", | |
"types" : [ "premise" ] | |
} | |
], | |
"routes" : [ | |
{ | |
"bounds" : { | |
"northeast" : { | |
"lat" : 49.2910237, | |
"lng" : -123.1009707 | |
}, | |
"southwest" : { | |
"lat" : 49.2646204, | |
"lng" : -123.1379632 | |
} | |
}, | |
"copyrights" : "Map data \u00a92023 Google", | |
"legs" : [ | |
{ | |
"distance" : { | |
"text" : "4.8 km", | |
"value" : 4823 | |
}, | |
"duration" : { | |
"text" : "14 mins", | |
"value" : 863 | |
}, | |
"duration_in_traffic" : { | |
"text" : "12 mins", | |
"value" : 710 | |
}, | |
"end_address" : "1847 Barclay St, Vancouver, BC V6G 1K7, Canada", | |
"end_location" : { | |
"lat" : 49.2910237, | |
"lng" : -123.1379632 | |
}, | |
"start_address" : "2265 Main St, Vancouver, BC V5T 1J5, Canada", | |
"start_location" : { | |
"lat" : 49.2649972, | |
"lng" : -123.1009707 | |
}, | |
"steps" : [ | |
{ | |
"distance" : { | |
"text" : "42 m", | |
"value" : 42 | |
}, | |
"duration" : { | |
"text" : "1 min", | |
"value" : 9 | |
}, | |
"end_location" : { | |
"lat" : 49.2646204, | |
"lng" : -123.1009915 | |
}, | |
"html_instructions" : "Head \u003cb\u003esouth\u003c/b\u003e on \u003cb\u003eMain St\u003c/b\u003e/\u003cwbr/\u003e\u003cb\u003eBC-1A\u003c/b\u003e/\u003cwbr/\u003e\u003cb\u003eBC-99A S\u003c/b\u003e toward \u003cb\u003eE 7th Ave\u003c/b\u003e", | |
"polyline" : { | |
"points" : "gaukH`djnV|@BL?" | |
}, | |
"start_location" : { | |
"lat" : 49.2649972, | |
"lng" : -123.1009707 | |
}, | |
"travel_mode" : "DRIVING" | |
}, | |
{ | |
"distance" : { | |
"text" : "1.0 km", | |
"value" : 998 | |
}, | |
"duration" : { | |
"text" : "3 mins", | |
"value" : 184 | |
}, | |
"end_location" : { | |
"lat" : 49.2649404, | |
"lng" : -123.114727 | |
}, | |
"html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e onto \u003cb\u003eE 7th Ave\u003c/b\u003e", | |
"maneuver" : "turn-right", | |
"polyline" : { | |
"points" : "{~tkHddjnV?v@?@?b@Ar@AvDAv@AxF?NApBAZ?rAAv@?`ACxC?XAtA?j@?N?XAj@Av@AxA@FCrB?P?H?`@C|FG`KAtBAxAAb@?RAXC^CZG\\" | |
}, | |
"start_location" : { | |
"lat" : 49.2646204, | |
"lng" : -123.1009915 | |
}, | |
"travel_mode" : "DRIVING" | |
}, | |
{ | |
"distance" : { | |
"text" : "0.9 km", | |
"value" : 943 | |
}, | |
"duration" : { | |
"text" : "1 min", | |
"value" : 68 | |
}, | |
"end_location" : { | |
"lat" : 49.2734152, | |
"lng" : -123.1147333 | |
}, | |
"html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e onto \u003cb\u003eCambie St\u003c/b\u003e", | |
"maneuver" : "turn-right", | |
"polyline" : { | |
"points" : "{`ukH`zlnVkAAq@DU@c@?S?m@@e@@G?I?K?cA?}@B_AB]B]@o@@o@B_BBG@q@@kA@G?e@GsDGeAA_@?C?E?E?QAQ?C?yAEqACYAW?i@Ag@E]?]AW@Y?" | |
}, | |
"start_location" : { | |
"lat" : 49.2649404, | |
"lng" : -123.114727 | |
}, | |
"travel_mode" : "DRIVING" | |
}, | |
{ | |
"distance" : { | |
"text" : "1.4 km", | |
"value" : 1391 | |
}, | |
"duration" : { | |
"text" : "5 mins", | |
"value" : 303 | |
}, | |
"end_location" : { | |
"lat" : 49.2831716, | |
"lng" : -123.1252116 | |
}, | |
"html_instructions" : "Continue onto \u003cb\u003eCambie St Bridge\u003c/b\u003e/\u003cwbr/\u003e\u003cb\u003eSmithe St\u003c/b\u003e\u003cdiv style=\"font-size:0.9em\"\u003eContinue to follow Smithe St\u003c/div\u003e", | |
"polyline" : { | |
"points" : "{uvkH`zlnVo@Co@Co@COCSC_ACG?C?u@Ae@CO?G@SBKBI@G@C@IDMDKDIHUJSJKHSRKLQNKPKPEJCDIRMTg@|@gAnB_@l@a@p@q@vAw@rAOV_AbB{@xAaAfBe@v@EHQXm@fAQX}@~A_A`BMVEFo@nA{@|AOVQX[f@Yd@S\\INEFEF}@~AeAnBMROREHGHEFA@GFGHIFGFIDIFIDGDE@UH_@J" | |
}, | |
"start_location" : { | |
"lat" : 49.2734152, | |
"lng" : -123.1147333 | |
}, | |
"travel_mode" : "DRIVING" | |
}, | |
{ | |
"distance" : { | |
"text" : "0.1 km", | |
"value" : 99 | |
}, | |
"duration" : { | |
"text" : "1 min", | |
"value" : 21 | |
}, | |
"end_location" : { | |
"lat" : 49.2839208, | |
"lng" : -123.1259108 | |
}, | |
"html_instructions" : "Continue onto \u003cb\u003eHaro St\u003c/b\u003e", | |
"polyline" : { | |
"points" : "yrxkHp{nnVQHQFQHOLMJA@KLC@MRORQZ" | |
}, | |
"start_location" : { | |
"lat" : 49.2831716, | |
"lng" : -123.1252116 | |
}, | |
"travel_mode" : "DRIVING" | |
}, | |
{ | |
"distance" : { | |
"text" : "0.1 km", | |
"value" : 111 | |
}, | |
"duration" : { | |
"text" : "1 min", | |
"value" : 23 | |
}, | |
"end_location" : { | |
"lat" : 49.2832044, | |
"lng" : -123.1269709 | |
}, | |
"html_instructions" : "Turn \u003cb\u003eleft\u003c/b\u003e onto \u003cb\u003eThurlow St\u003c/b\u003e", | |
"maneuver" : "turn-left", | |
"polyline" : { | |
"points" : "owxkH|_onVdAjB\\h@Zj@NP" | |
}, | |
"start_location" : { | |
"lat" : 49.2839208, | |
"lng" : -123.1259108 | |
}, | |
"travel_mode" : "DRIVING" | |
}, | |
{ | |
"distance" : { | |
"text" : "0.5 km", | |
"value" : 525 | |
}, | |
"duration" : { | |
"text" : "2 mins", | |
"value" : 90 | |
}, | |
"end_location" : { | |
"lat" : 49.2865475, | |
"lng" : -123.1319976 | |
}, | |
"html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e at the 2nd cross street onto \u003cb\u003eBarclay St\u003c/b\u003e", | |
"maneuver" : "turn-right", | |
"polyline" : { | |
"points" : "_sxkHpfonVw@pAm@hAs@lAS`@iB`Ds@lA?@Yd@_CbEGNo@jAoBhDAAAACAA?C@AB" | |
}, | |
"start_location" : { | |
"lat" : 49.2832044, | |
"lng" : -123.1269709 | |
}, | |
"travel_mode" : "DRIVING" | |
}, | |
{ | |
"distance" : { | |
"text" : "10 m", | |
"value" : 10 | |
}, | |
"duration" : { | |
"text" : "1 min", | |
"value" : 2 | |
}, | |
"end_location" : { | |
"lat" : 49.2865466, | |
"lng" : -123.1321236 | |
}, | |
"html_instructions" : "Turn \u003cb\u003eleft\u003c/b\u003e at \u003cb\u003eBroughton St\u003c/b\u003e", | |
"maneuver" : "turn-left", | |
"polyline" : { | |
"points" : "}gykH~epnV?BAB?B?B?B@B" | |
}, | |
"start_location" : { | |
"lat" : 49.2865475, | |
"lng" : -123.1319976 | |
}, | |
"travel_mode" : "DRIVING" | |
}, | |
{ | |
"distance" : { | |
"text" : "0.6 km", | |
"value" : 556 | |
}, | |
"duration" : { | |
"text" : "2 mins", | |
"value" : 100 | |
}, | |
"end_location" : { | |
"lat" : 49.29007499999999, | |
"lng" : -123.137564 | |
}, | |
"html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e onto \u003cb\u003eBarclay St\u003c/b\u003e", | |
"maneuver" : "turn-right", | |
"polyline" : { | |
"points" : "}gykHvfpnVQZWf@s@lAYf@Wf@mArB?@w@tAUZy@|Ao@jAa@r@u@rAEHkExH" | |
}, | |
"start_location" : { | |
"lat" : 49.2865466, | |
"lng" : -123.1321236 | |
}, | |
"travel_mode" : "DRIVING" | |
}, | |
{ | |
"distance" : { | |
"text" : "54 m", | |
"value" : 54 | |
}, | |
"duration" : { | |
"text" : "1 min", | |
"value" : 19 | |
}, | |
"end_location" : { | |
"lat" : 49.2904209, | |
"lng" : -123.1370512 | |
}, | |
"html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e onto \u003cb\u003eDenman St\u003c/b\u003e", | |
"maneuver" : "turn-right", | |
"polyline" : { | |
"points" : "}}ykHvhqnVeAeB" | |
}, | |
"start_location" : { | |
"lat" : 49.29007499999999, | |
"lng" : -123.137564 | |
}, | |
"travel_mode" : "DRIVING" | |
}, | |
{ | |
"distance" : { | |
"text" : "94 m", | |
"value" : 94 | |
}, | |
"duration" : { | |
"text" : "1 min", | |
"value" : 44 | |
}, | |
"end_location" : { | |
"lat" : 49.2910237, | |
"lng" : -123.1379632 | |
}, | |
"html_instructions" : "Turn \u003cb\u003eleft\u003c/b\u003e onto \u003cb\u003eStovold Ln\u003c/b\u003e\u003cdiv style=\"font-size:0.9em\"\u003eDestination will be on the left\u003c/div\u003e", | |
"maneuver" : "turn-left", | |
"polyline" : { | |
"points" : "c`zkHpeqnVwBtD" | |
}, | |
"start_location" : { | |
"lat" : 49.2904209, | |
"lng" : -123.1370512 | |
}, | |
"travel_mode" : "DRIVING" | |
} | |
], | |
"traffic_speed_entry" : [], | |
"via_waypoint" : [] | |
} | |
], | |
"overview_polyline" : { | |
"points" : "gaukH`djnVjAB?x@EfIK~VWrh@EjDGz@G\\kAAgAFw@?eBBmEF{CJeFHm@GyFIo@?aCGmDGeAEu@?iAC_BGc@GgACoBEq@Jc@N_Af@}@z@a@t@Wh@oBlDaA~Aq@vAw@rAoAzB}B`EkBbD}CrFaClEoDdGiB`DWZc@^a@TyAf@q@d@m@v@QZdAjBx@tANPw@pAaBvCqDrGqEdIoBhDAAECGHAN@BQZkAtB_CdEmApBiBhDiHjMeAeBwBtD" | |
}, | |
"summary" : "Smithe St", | |
"warnings" : [], | |
"waypoint_order" : [] | |
} | |
], | |
"status" : "OK" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment