Driving

Request

origin: 75 9th Ave, New York, NY destination: MetLife Stadium Dr East Rutherford, NJ 07073 mode: driving key: API_KEY

URL

https://maps.googleapis.com/maps/api/directions/json?origin=75+9th+Ave+New+York,+NY&destination=MetLife+Stadium+1+MetLife+Stadium+Dr+East+Rutherford,+NJ+07073&key=YOUR_API_KEY
XML

Response

<?xml version="1.0" encoding="UTF-8"?> <DirectionsResponse> <status>OK</status> <route> <summary>NJ-495 W and NJ-3 W</summary> <leg> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7428759</lat> <lng>-74.0058472</lng> </start_location> <end_location> <lat>40.7422925</lat> <lng>-74.0044570</lng> </end_location> <polyline> <points>_rtwFpgubMtBuG</points> </polyline> <duration> <value>34</value> <text>1 min</text> </duration> <html_instructions>Head <b>southeast</b> on <b>W 16th St</b> toward <b>Ninth Ave</b></html_instructions> <distance> <value>134</value> <text>440 ft</text> </distance> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7422925</lat> <lng>-74.0044570</lng> </start_location> <end_location> <lat>40.7421744</lat> <lng>-74.0045361</lng> </end_location> <polyline> <points>intwFz~tbMVN</points> </polyline> <duration> <value>29</value> <text>1 min</text> </duration> <html_instructions>Turn <b>right</b> at the 1st cross street onto <b>Ninth Ave</b></html_instructions> <distance> <value>15</value> <text>49 ft</text> </distance> <maneuver>turn-right</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7421744</lat> <lng>-74.0045361</lng> </start_location> <end_location> <lat>40.7416627</lat> <lng>-74.0049708</lng> </end_location> <polyline> <points>qmtwFj_ubMDN@@?@JFXP`@VTN</points> </polyline> <duration> <value>24</value> <text>1 min</text> </duration> <html_instructions>Slight <b>right</b> to stay on <b>Ninth Ave</b></html_instructions> <distance> <value>69</value> <text>226 ft</text> </distance> <maneuver>turn-slight-right</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7416627</lat> <lng>-74.0049708</lng> </start_location> <end_location> <lat>40.7428273</lat> <lng>-74.0077346</lng> </end_location> <polyline> <points>kjtwF`bubMIVeBlFEN{A|EWr@</points> </polyline> <duration> <value>74</value> <text>1 min</text> </duration> <html_instructions>Turn <b>right</b> onto <b>W 15th St</b></html_instructions> <distance> <value>266</value> <text>0.2 mi</text> </distance> <maneuver>turn-right</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7428273</lat> <lng>-74.0077346</lng> </start_location> <end_location> <lat>40.7571135</lat> <lng>-73.9973176</lng> </end_location> <polyline> <points>uqtwFhsubMo@ ...points truncated in this example</points> </polyline> <duration> <value>349</value> <text>6 mins</text> </duration> <html_instructions>Turn <b>right</b> at the 1st cross street onto <b>10th Ave</b></html_instructions> <distance> <value>1815</value> <text>1.1 mi</text> </distance> <maneuver>turn-right</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7571135</lat> <lng>-73.9973176</lng> </start_location> <end_location> <lat>40.7559092</lat> <lng>-73.9944915</lng> </end_location> <polyline> <points>}jwwFfrsbMzA}E@CNe@Tu@d@uAHYHU@AHWDM^iA</points> </polyline> <duration> <value>59</value> <text>1 min</text> </duration> <html_instructions>Turn <b>right</b> onto <b>W 38th St</b></html_instructions> <distance> <value>273</value> <text>0.2 mi</text> </distance> <maneuver>turn-right</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7559092</lat> <lng>-73.9944915</lng> </start_location> <end_location> <lat>40.7550018</lat> <lng>-73.9951569</lng> </end_location> <polyline> <points>mcwwFp`sbMtBtA~@n@</points> </polyline> <duration> <value>38</value> <text>1 min</text> </duration> <html_instructions>Turn <b>right</b> at the 1st cross street onto <b>Ninth Ave</b></html_instructions> <distance> <value>115</value> <text>377 ft</text> </distance> <maneuver>turn-right</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7550018</lat> <lng>-73.9951569</lng> </start_location> <end_location> <lat>40.7560886</lat> <lng>-73.9950563</lng> </end_location> <polyline> <points>w}vwFvdsbMJb@ ...points truncated in this example</points> </polyline> <duration> <value>39</value> <text>1 min</text> </duration> <html_instructions>Slight <b>right</b> onto the <b>Lincoln Tunnel</b> ramp to <b>New Jersey</b></html_instructions> <distance> <value>226</value> <text>0.1 mi</text> </distance> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7560886</lat> <lng>-73.9950563</lng> </start_location> <end_location> <lat>40.7563822</lat> <lng>-73.9949785</lng> </end_location> <polyline> <points>qdwwFbdsbMECECCAEAEAE?EAE?E?E?</points> </polyline> <duration> <value>6</value> <text>1 min</text> </duration> <html_instructions>Merge onto <b>NY-495 W</b></html_instructions> <distance> <value>34</value> <text>112 ft</text> </distance> <maneuver>merge</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7563822</lat> <lng>-73.9949785</lng> </start_location> <end_location> <lat>40.7631296</lat> <lng>-74.0094858</lng> </end_location> <polyline> <points>kfwwFrcsbMG?E? ...points truncated in this example</points> </polyline> <duration> <value>124</value> <text>2 mins</text> </duration> <html_instructions>Keep <b>right</b> at the fork to stay on <b>NY-495 W</b><div style="font-size:0.9em">Entering New Jersey</div></html_instructions> <distance> <value>1453</value> <text>0.9 mi</text> </distance> <maneuver>fork-right</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7631296</lat> <lng>-74.0094858</lng> </start_location> <end_location> <lat>40.7767179</lat> <lng>-74.0428130</lng> </end_location> <polyline> <points>qpxwFh~ubMsJ ...points truncated in this example</points> </polyline> <duration> <value>301</value> <text>5 mins</text> </duration> <html_instructions>Continue onto <b>NJ-495 W</b></html_instructions> <distance> <value>4516</value> <text>2.8 mi</text> </distance> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7767179</lat> <lng>-74.0428130</lng> </start_location> <end_location> <lat>40.7797406</lat> <lng>-74.0459794</lng> </end_location> <polyline> <points>oe{wFpn|bMc@fAEJ ...points truncated in this example</points> </polyline> <duration> <value>21</value> <text>1 min</text> </duration> <html_instructions>Keep <b>right</b> at the fork to continue on <b>NJ-3 W</b>, follow signs for <b>New Jersey 3 W</b>/<b>Garden State Parkway</b>/<b>Secaucus</b></html_instructions> <distance> <value>435</value> <text>0.3 mi</text> </distance> <maneuver>fork-right</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7797406</lat> <lng>-74.0459794</lng> </start_location> <end_location> <lat>40.8041562</lat> <lng>-74.0717843</lng> </end_location> <polyline> <points>kx{wFjb}bMMJGDE ...points truncated in this example</points> </polyline> <duration> <value>141</value> <text>2 mins</text> </duration> <html_instructions>Keep <b>left</b> to stay on <b>NJ-3 W</b>, follow signs for <b>New Jersey 3 W</b>/<b>Clifton</b></html_instructions> <distance> <value>3560</value> <text>2.2 mi</text> </distance> <maneuver>keep-left</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.8041562</lat> <lng>-74.0717843</lng> </start_location> <end_location> <lat>40.8062905</lat> <lng>-74.0724593</lng> </end_location> <polyline> <points>_q`xFrcbcMSBA?C ...points truncated in this example</points> </polyline> <duration> <value>13</value> <text>1 min</text> </duration> <html_instructions>Take the <b>NJ-120 N</b> exit toward <b>E Rutherford</b></html_instructions> <distance> <value>249</value> <text>0.2 mi</text> </distance> <maneuver>ramp-right</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.8062905</lat> <lng>-74.0724593</lng> </start_location> <end_location> <lat>40.8074150</lat> <lng>-74.0725091</lng> </end_location> <polyline> <points>i~`xFzgbcMaFH</points> </polyline> <duration> <value>6</value> <text>1 min</text> </duration> <html_instructions>Keep <b>left</b>, follow signs for <b>State Route 503 N</b>/<b>New Jersey 120 N</b>/<b>Washington Avenue</b>/<b>Moonachie</b>/<b>Paterson Plank Road</b></html_instructions> <distance> <value>125</value> <text>410 ft</text> </distance> <maneuver>keep-left</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.8074150</lat> <lng>-74.0725091</lng> </start_location> <end_location> <lat>40.8145647</lat> <lng>-74.0687893</lng> </end_location> <polyline> <points>keaxFdhbcMc@ ...points truncated in this example</points> </polyline> <duration> <value>38</value> <text>1 min</text> </duration> <html_instructions>Continue onto <b>NJ-120 N</b></html_instructions> <distance> <value>869</value> <text>0.5 mi</text> </distance> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.8145647</lat> <lng>-74.0687893</lng> </start_location> <end_location> <lat>40.8170874</lat> <lng>-74.0665298</lng> </end_location> <polyline> <points>_rbxF|pacMm@c@} ...points truncated in this example</points> </polyline> <duration> <value>16</value> <text>1 min</text> </duration> <html_instructions>Continue straight onto <b>Washington Ave</b></html_instructions> <distance> <value>339</value> <text>0.2 mi</text> </distance> <maneuver>straight</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.8170874</lat> <lng>-74.0665298</lng> </start_location> <end_location> <lat>40.8143541</lat> <lng>-74.0648063</lng> </end_location> <polyline> <points>yacxFxbacMES ...points truncated in this example</points> </polyline> <duration> <value>38</value> <text>1 min</text> </duration> <html_instructions>Turn <b>right</b> onto <b>Paterson Plank Rd</b></html_instructions> <distance> <value>358</value> <text>0.2 mi</text> </distance> <maneuver>turn-right</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.8143541</lat> <lng>-74.0648063</lng> </start_location> <end_location> <lat>40.8141899</lat> <lng>-74.0649819</lng> </end_location> <polyline> <points>upbxF`x`cMTVHH</points> </polyline> <duration> <value>4</value> <text>1 min</text> </duration> <html_instructions>Turn <b>right</b> toward <b>N Connection Rd</b></html_instructions> <distance> <value>24</value> <text>79 ft</text> </distance> <maneuver>turn-right</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.8141899</lat> <lng>-74.0649819</lng> </start_location> <end_location> <lat>40.8138003</lat> <lng>-74.0669371</lng> </end_location> <polyline> <points>uobxFby`cMFHFFFHPPDzATtDFfA</points> </polyline> <duration> <value>25</value> <text>1 min</text> </duration> <html_instructions>Turn <b>right</b> onto <b>N Connection Rd</b></html_instructions> <distance> <value>177</value> <text>0.1 mi</text> </distance> <maneuver>turn-right</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.8138003</lat> <lng>-74.0669371</lng> </start_location> <end_location> <lat>40.8149711</lat> <lng>-74.0728354</lng> </end_location> <polyline> <points>gmbxFjeacMDjA@ ...points truncated in this example</points> </polyline> <duration> <value>73</value> <text>1 min</text> </duration> <html_instructions>Continue straight onto <b>Rd D</b></html_instructions> <distance> <value>548</value> <text>0.3 mi</text> </distance> <maneuver>straight</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.8149711</lat> <lng>-74.0728354</lng> </start_location> <end_location> <lat>40.8145050</lat> <lng>-74.0727291</lng> </end_location> <polyline> <points>qtbxFfjbcMf@AHAFA^MBA</points> </polyline> <duration> <value>28</value> <text>1 min</text> </duration> <html_instructions>Turn <b>left</b> onto <b>MetLife Stadium Dr</b><div style="font-size:0.9em">Destination will be on the right</div></html_instructions> <distance> <value>53</value> <text>174 ft</text> </distance> <maneuver>turn-left</maneuver> </step> <duration> <value>1480</value> <text>25 mins</text> </duration> <distance> <value>15653</value> <text>9.7 mi</text> </distance> <start_location> <lat>40.7428759</lat> <lng>-74.0058472</lng> </start_location> <end_location> <lat>40.8145050</lat> <lng>-74.0727291</lng> </end_location> <start_address>75 Ninth Ave, New York, NY 10011, USA</start_address> <end_address>1 MetLife Stadium Dr, East Rutherford, NJ 07073, USA</end_address> </leg> <copyrights>Map data ©2015 Google</copyrights> <overview_polyline> <points>_rtwFpgubMtBuG ...points truncated in this example</points> </overview_polyline> <bounds> <southwest> <lat>40.7416627</lat> <lng>-74.0728354</lng> </southwest> <northeast> <lat>40.8171321</lat> <lng>-73.9944915</lng> </northeast> </bounds> </route> <geocoded_waypoint> <geocoder_status>OK</geocoder_status> <type>premise</type> <place_id>ChIJyYfhZ79ZwokRMtXcL6CYxkA</place_id> </geocoded_waypoint> <geocoded_waypoint> <geocoder_status>OK</geocoder_status> <type>street_address</type> <partial_match>true</partial_match> <place_id>ChIJ8YWMWnz4wokRCOVf1CcJCbY</place_id> </geocoded_waypoint> </DirectionsResponse>
JSON

Response

{ "geocoded_waypoints" : [ { "geocoder_status" : "OK", "place_id" : "ChIJyYfhZ79ZwokRMtXcL6CYxkA", "types" : [ "premise" ] }, { "geocoder_status" : "OK", "partial_match" : true, "place_id" : "ChIJ8YWMWnz4wokRCOVf1CcJCbY", "types" : [ "street_address" ] } ], "routes" : [ { "bounds" : { "northeast" : { "lat" : 40.8171321, "lng" : -73.99449150000001 }, "southwest" : { "lat" : 40.7416627, "lng" : -74.0728354 } }, "copyrights" : "Map data ©2015 Google", "legs" : [ { "distance" : { "text" : "9.7 mi", "value" : 15653 }, "duration" : { "text" : "25 mins", "value" : 1480 }, "end_address" : "1 MetLife Stadium Dr, East Rutherford, NJ 07073, USA", "end_location" : { "lat" : 40.814505, "lng" : -74.07272910000002 }, "start_address" : "75 Ninth Ave, New York, NY 10011, USA", "start_location" : { "lat" : 40.7428759, "lng" : -74.00584719999999 }, "steps" : [ { "distance" : { "text" : "440 ft", "value" : 134 }, "duration" : { "text" : "1 min", "value" : 34 }, "end_location" : { "lat" : 40.7422925, "lng" : -74.004457 }, "html_instructions" : "Head \u003cb\u003esoutheast\u003c/b\u003e on \u003cb\u003eW 16th St\u003c/b\u003e toward \u003cb\u003eNinth Ave\u003c/b\u003e", "polyline" : { "points" : "_rtwFpgubMtBuG" }, "start_location" : { "lat" : 40.7428759, "lng" : -74.00584719999999 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "49 ft", "value" : 15 }, "duration" : { "text" : "1 min", "value" : 29 }, "end_location" : { "lat" : 40.7421744, "lng" : -74.0045361 }, "html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e at the 1st cross street onto \u003cb\u003eNinth Ave\u003c/b\u003e", "maneuver" : "turn-right", "polyline" : { "points" : "intwFz~tbMVN" }, "start_location" : { "lat" : 40.7422925, "lng" : -74.004457 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "226 ft", "value" : 69 }, "duration" : { "text" : "1 min", "value" : 24 }, "end_location" : { "lat" : 40.7416627, "lng" : -74.0049708 }, "html_instructions" : "Slight \u003cb\u003eright\u003c/b\u003e to stay on \u003cb\u003eNinth Ave\u003c/b\u003e", "maneuver" : "turn-slight-right", "polyline" : { "points" : "qmtwFj_ubMDN@@?@JFXP`@VTN" }, "start_location" : { "lat" : 40.7421744, "lng" : -74.0045361 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.2 mi", "value" : 266 }, "duration" : { "text" : "1 min", "value" : 74 }, "end_location" : { "lat" : 40.74282729999999, "lng" : -74.00773459999999 }, "html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e onto \u003cb\u003eW 15th St\u003c/b\u003e", "maneuver" : "turn-right", "polyline" : { "points" : "kjtwF`bubMIVeBlFEN{A|EWr@" }, "start_location" : { "lat" : 40.7416627, "lng" : -74.0049708 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "1.1 mi", "value" : 1815 }, "duration" : { "text" : "6 mins", "value" : 349 }, "end_location" : { "lat" : 40.7571135, "lng" : -73.9973176 }, "html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e at the 1st cross street onto \u003cb\u003e10th Ave\u003c/b\u003e", "maneuver" : "turn-right", "polyline" : { "points" : "uqtwFhsubMo@ ...points truncated in this example" }, "start_location" : { "lat" : 40.74282729999999, "lng" : -74.00773459999999 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.2 mi", "value" : 273 }, "duration" : { "text" : "1 min", "value" : 59 }, "end_location" : { "lat" : 40.7559092, "lng" : -73.99449150000001 }, "html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e onto \u003cb\u003eW 38th St\u003c/b\u003e", "maneuver" : "turn-right", "polyline" : { "points" : "}jwwFfrsbMzA}E@CNe@Tu@d@uAHYHU@AHWDM^iA" }, "start_location" : { "lat" : 40.7571135, "lng" : -73.9973176 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "377 ft", "value" : 115 }, "duration" : { "text" : "1 min", "value" : 38 }, "end_location" : { "lat" : 40.7550018, "lng" : -73.9951569 }, "html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e at the 1st cross street onto \u003cb\u003eNinth Ave\u003c/b\u003e", "maneuver" : "turn-right", "polyline" : { "points" : "mcwwFp`sbMtBtA~@n@" }, "start_location" : { "lat" : 40.7559092, "lng" : -73.99449150000001 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.1 mi", "value" : 226 }, "duration" : { "text" : "1 min", "value" : 39 }, "end_location" : { "lat" : 40.7560886, "lng" : -73.9950563 }, "html_instructions" : "Slight \u003cb\u003eright\u003c/b\u003e onto the \u003cb\u003eLincoln Tunnel\u003c/b\u003e ramp to \u003cb\u003eNew Jersey\u003c/b\u003e", "polyline" : { "points" : "w}vwFvdsbMJb@ ...points truncated in this example" }, "start_location" : { "lat" : 40.7550018, "lng" : -73.9951569 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "112 ft", "value" : 34 }, "duration" : { "text" : "1 min", "value" : 6 }, "end_location" : { "lat" : 40.7563822, "lng" : -73.9949785 }, "html_instructions" : "Merge onto \u003cb\u003eNY-495 W\u003c/b\u003e", "maneuver" : "merge", "polyline" : { "points" : "qdwwFbdsbMECECCAEAEAE?EAE?E?E?" }, "start_location" : { "lat" : 40.7560886, "lng" : -73.9950563 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.9 mi", "value" : 1453 }, "duration" : { "text" : "2 mins", "value" : 124 }, "end_location" : { "lat" : 40.7631296, "lng" : -74.00948579999999 }, "html_instructions" : "Keep \u003cb\u003eright\u003c/b\u003e at the fork to stay on \u003cb\u003eNY-495 W\u003c/b\u003e\u003cdiv style=\"font-size:0.9em\"\u003eEntering New Jersey\u003c/div\u003e", "maneuver" : "fork-right", "polyline" : { "points" : "kfwwFrcsbMG? ...points truncated in this example" }, "start_location" : { "lat" : 40.7563822, "lng" : -73.9949785 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "2.8 mi", "value" : 4516 }, "duration" : { "text" : "5 mins", "value" : 301 }, "end_location" : { "lat" : 40.7767179, "lng" : -74.042813 }, "html_instructions" : "Continue onto \u003cb\u003eNJ-495 W\u003c/b\u003e", "polyline" : { "points" : "qpxwFh~ubMs ...points truncated in this example" }, "start_location" : { "lat" : 40.7631296, "lng" : -74.00948579999999 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.3 mi", "value" : 435 }, "duration" : { "text" : "1 min", "value" : 21 }, "end_location" : { "lat" : 40.7797406, "lng" : -74.04597939999999 }, "html_instructions" : "Keep \u003cb\u003eright\u003c/b\u003e at the fork to continue on \u003cb\u003eNJ-3 W\u003c/b\u003e, follow signs for \u003cb\u003eNew Jersey 3 W\u003c/b\u003e/\u003cb\u003eGarden State Parkway\u003c/b\u003e/\u003cb\u003eSecaucus\u003c/b\u003e", "maneuver" : "fork-right", "polyline" : { "points" : "oe{wFpn|bMc@ ...points truncated in this example" }, "start_location" : { "lat" : 40.7767179, "lng" : -74.042813 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "2.2 mi", "value" : 3560 }, "duration" : { "text" : "2 mins", "value" : 141 }, "end_location" : { "lat" : 40.8041562, "lng" : -74.0717843 }, "html_instructions" : "Keep \u003cb\u003eleft\u003c/b\u003e to stay on \u003cb\u003eNJ-3 W\u003c/b\u003e, follow signs for \u003cb\u003eNew Jersey 3 W\u003c/b\u003e/\u003cb\u003eClifton\u003c/b\u003e", "maneuver" : "keep-left", "polyline" : { "points" : "kx{wFjb}bMMJ ...points truncated in this example" }, "start_location" : { "lat" : 40.7797406, "lng" : -74.04597939999999 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.2 mi", "value" : 249 }, "duration" : { "text" : "1 min", "value" : 13 }, "end_location" : { "lat" : 40.8062905, "lng" : -74.07245929999999 }, "html_instructions" : "Take the \u003cb\u003eNJ-120 N\u003c/b\u003e exit toward \u003cb\u003eE Rutherford\u003c/b\u003e", "maneuver" : "ramp-right", "polyline" : { "points" : "_q`xFrcbcMSB ...points truncated in this example" }, "start_location" : { "lat" : 40.8041562, "lng" : -74.0717843 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "410 ft", "value" : 125 }, "duration" : { "text" : "1 min", "value" : 6 }, "end_location" : { "lat" : 40.807415, "lng" : -74.07250909999999 }, "html_instructions" : "Keep \u003cb\u003eleft\u003c/b\u003e, follow signs for \u003cb\u003eState Route 503 N\u003c/b\u003e/\u003cb\u003eNew Jersey 120 N\u003c/b\u003e/\u003cb\u003eWashington Avenue\u003c/b\u003e/\u003cb\u003eMoonachie\u003c/b\u003e/\u003cb\u003ePaterson Plank Road\u003c/b\u003e", "maneuver" : "keep-left", "polyline" : { "points" : "i~`xFzgbcMaFH" }, "start_location" : { "lat" : 40.8062905, "lng" : -74.07245929999999 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.5 mi", "value" : 869 }, "duration" : { "text" : "1 min", "value" : 38 }, "end_location" : { "lat" : 40.8145647, "lng" : -74.06878929999999 }, "html_instructions" : "Continue onto \u003cb\u003eNJ-120 N\u003c/b\u003e", "polyline" : { "points" : "keaxFdhbcMc@ ...points truncated in this example" }, "start_location" : { "lat" : 40.807415, "lng" : -74.07250909999999 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.2 mi", "value" : 339 }, "duration" : { "text" : "1 min", "value" : 16 }, "end_location" : { "lat" : 40.8170874, "lng" : -74.0665298 }, "html_instructions" : "Continue straight onto \u003cb\u003eWashington Ave\u003c/b\u003e", "maneuver" : "straight", "polyline" : { "points" : "_rbxF|pacMm@c@ ...points truncated in this example" }, "start_location" : { "lat" : 40.8145647, "lng" : -74.06878929999999 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.2 mi", "value" : 358 }, "duration" : { "text" : "1 min", "value" : 38 }, "end_location" : { "lat" : 40.8143541, "lng" : -74.0648063 }, "html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e onto \u003cb\u003ePaterson Plank Rd\u003c/b\u003e", "maneuver" : "turn-right", "polyline" : { "points" : "yacxFxbacM ...points truncated in this example" }, "start_location" : { "lat" : 40.8170874, "lng" : -74.0665298 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "79 ft", "value" : 24 }, "duration" : { "text" : "1 min", "value" : 4 }, "end_location" : { "lat" : 40.8141899, "lng" : -74.06498189999999 }, "html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e toward \u003cb\u003eN Connection Rd\u003c/b\u003e", "maneuver" : "turn-right", "polyline" : { "points" : "upbxF`x`cMTVHH" }, "start_location" : { "lat" : 40.8143541, "lng" : -74.0648063 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.1 mi", "value" : 177 }, "duration" : { "text" : "1 min", "value" : 25 }, "end_location" : { "lat" : 40.8138003, "lng" : -74.06693709999999 }, "html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e onto \u003cb\u003eN Connection Rd\u003c/b\u003e", "maneuver" : "turn-right", "polyline" : { "points" : "uobxFby`cMFHFFFHPPDzATtDFfA" }, "start_location" : { "lat" : 40.8141899, "lng" : -74.06498189999999 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.3 mi", "value" : 548 }, "duration" : { "text" : "1 min", "value" : 73 }, "end_location" : { "lat" : 40.8149711, "lng" : -74.0728354 }, "html_instructions" : "Continue straight onto \u003cb\u003eRd D\u003c/b\u003e", "maneuver" : "straight", "polyline" : { "points" : "gmbxFjeacMDjA ...points truncated in this example" }, "start_location" : { "lat" : 40.8138003, "lng" : -74.06693709999999 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "174 ft", "value" : 53 }, "duration" : { "text" : "1 min", "value" : 28 }, "end_location" : { "lat" : 40.814505, "lng" : -74.07272910000002 }, "html_instructions" : "Turn \u003cb\u003eleft\u003c/b\u003e onto \u003cb\u003eMetLife Stadium Dr\u003c/b\u003e\u003cdiv style=\"font-size:0.9em\"\u003eDestination will be on the right\u003c/div\u003e", "maneuver" : "turn-left", "polyline" : { "points" : "qtbxFfjbcMf@AHAFA^MBA" }, "start_location" : { "lat" : 40.8149711, "lng" : -74.0728354 }, "travel_mode" : "DRIVING" } ], "via_waypoint" : [] } ], "overview_polyline" : { "points" : "_rtwFpgubMt ...overview polyline truncated in this example" }, "summary" : "NJ-495 W and NJ-3 W", "warnings" : [], "waypoint_order" : [] } ], "status" : "OK" }
Transit

Request

origin: 75 9th Ave, New York, NY destination: MetLife Stadium Dr East Rutherford, NJ 07073 mode: transit arrival_time: 1391374800 key: API_KEY

URL

https://maps.googleapis.com/maps/api/directions/json?origin=75+9th+Ave+New+York,+NY&destination=MetLife+Stadium+1+MetLife+Stadium+Dr+East+Rutherford,+NJ+07073&mode=transit&arrival_time=1391374800&key=YOUR_API_KEY
XML

Response

<?xml version="1.0" encoding="UTF-8"?> <DirectionsResponse> <status>OK</status> <route> <summary></summary> <leg> <step> <travel_mode>WALKING</travel_mode> <start_location> <lat>40.7428444</lat> <lng>-74.0058702</lng> </start_location> <end_location> <lat>40.7408930</lat> <lng>-74.0016900</lng> </end_location> <polyline> <points>wqtwFtgubMdKcY</points> </polyline> <duration> <value>397</value> <text>7 mins</text> </duration> <html_instructions>Walk to 14 St</html_instructions> <distance> <value>413</value> <text>0.3 mi</text> </distance> <step> <travel_mode>WALKING</travel_mode> <start_location> <lat>40.7428444</lat> <lng>-74.0058702</lng> </start_location> <end_location> <lat>40.7408930</lat> <lng>-74.0016900</lng> </end_location> <polyline> <points>wqtwFtgubMdKcY</points> </polyline> <duration> <value>397</value> <text>7 mins</text> </duration> <distance> <value>413</value> <text>0.3 mi</text> </distance> </step> </step> <step> <travel_mode>TRANSIT</travel_mode> <start_location> <lat>40.7408930</lat> <lng>-74.0016900</lng> </start_location> <end_location> <lat>40.7573080</lat> <lng>-73.9897350</lng> </end_location> <polyline> <points>qetwFpmtbMk^yU{f@a\k^yU</points> </polyline> <duration> <value>270</value> <text>5 mins</text> </duration> <html_instructions>Subway towards Inwood - 207 St</html_instructions> <distance> <value>2084</value> <text>1.3 mi</text> </distance> <transit_details> <departure_stop> <name>14 St</name> <location> <lat>40.7408930</lat> <lng>-74.0016900</lng> </location> </departure_stop> <arrival_stop> <name>42 St - Port Authority Bus Terminal</name> <location> <lat>40.7573080</lat> <lng>-73.9897350</lng> </location> </arrival_stop> <line> <name>8 Avenue Express</name> <short_name>A</short_name> <url>http://web.mta.info/nyct/service/pdf/tacur.pdf</url> <vehicle> <name>Subway</name> <type>SUBWAY</type> <icon>//maps.gstatic.com/mapfiles/transit/iw2/6/subway.png</icon> </vehicle> <agency> <name>MTA New York City Transit</name> <url>http://www.mta.info/</url> <phone>1 (718) 330-1234</phone> </agency> <icon>//maps.gstatic.com/mapfiles/transit/iw2/6/us-ny-mta/A.png</icon> <color>#2850ad</color> <text_color>#ffffff</text_color> </line> <num_stops>2</num_stops> <headsign>Inwood - 207 St</headsign> <departure_time> <value>1447186020</value> <text>3:07pm</text> <time_zone>America/New_York</time_zone> </departure_time> <arrival_time> <value>1447186290</value> <text>3:11pm</text> <time_zone>America/New_York</time_zone> </arrival_time> </transit_details> </step> <step> <travel_mode>WALKING</travel_mode> <start_location> <lat>40.7573080</lat> <lng>-73.9897350</lng> </start_location> <end_location> <lat>40.7563670</lat> <lng>-73.9907530</lng> </end_location> <polyline> <points>elwwFzbrbMzDhE</points> </polyline> <duration> <value>135</value> <text>2 mins</text> </duration> <html_instructions>Walk to Port Authority Bus Terminal</html_instructions> <distance> <value>135</value> <text>443 ft</text> </distance> <step> <travel_mode>WALKING</travel_mode> <start_location> <lat>40.7573080</lat> <lng>-73.9897350</lng> </start_location> <end_location> <lat>40.7563670</lat> <lng>-73.9907530</lng> </end_location> <polyline> <points>elwwFzbrbMzDhE</points> </polyline> <duration> <value>135</value> <text>2 mins</text> </duration> <distance> <value>135</value> <text>443 ft</text> </distance> </step> </step> <step> <travel_mode>TRANSIT</travel_mode> <start_location> <lat>40.7563670</lat> <lng>-73.9907530</lng> </start_location> <end_location> <lat>40.8179080</lat> <lng>-74.0656630</lng> </end_location> <polyline> <points>ifwwFdirbM\ ...points truncated in this example</points> </polyline> <duration> <value>846</value> <text>14 mins</text> </duration> <html_instructions>Bus towards 161 Paterson</html_instructions> <distance> <value>12402</value> <text>7.7 mi</text> </distance> <transit_details> <departure_stop> <name>Port Authority Bus Terminal</name> <location> <lat>40.7563670</lat> <lng>-73.9907530</lng> </location> </departure_stop> <arrival_stop> <name>Washington Ave at Paterson Plank Rd</name> <location> <lat>40.8179080</lat> <lng>-74.0656630</lng> </location> </arrival_stop> <line> <short_name>161</short_name> <vehicle> <name>Bus</name> <type>BUS</type> <icon>//maps.gstatic.com/mapfiles/transit/iw2/6/bus.png</icon> </vehicle> <agency> <name>NJ TRANSIT BUS</name> <url>http://www.njtransit.com/</url> </agency> </line> <num_stops>1</num_stops> <headsign>161 Paterson</headsign> <departure_time> <value>1447186800</value> <text>3:20pm</text> <time_zone>America/New_York</time_zone> </departure_time> <arrival_time> <value>1447187646</value> <text>3:34pm</text> <time_zone>America/New_York</time_zone> </arrival_time> </transit_details> </step> <step> <travel_mode>WALKING</travel_mode> <start_location> <lat>40.8179080</lat> <lng>-74.0656630</lng> </start_location> <end_location> <lat>40.8145050</lat> <lng>-74.0727291</lng> </end_location> <polyline> <points>}fcxFj}`cMADLNLL ...points truncated in this example</points> </polyline> <duration> <value>894</value> <text>15 mins</text> </duration> <html_instructions>Walk to 1 MetLife Stadium Dr, East Rutherford, NJ 07073, USA</html_instructions> <distance> <value>1239</value> <text>0.8 mi</text> </distance> <step> <travel_mode>WALKING</travel_mode> <start_location> <lat>40.8179080</lat> <lng>-74.0656630</lng> </start_location> <end_location> <lat>40.8173694</lat> <lng>-74.0662743</lng> </end_location> <polyline> <points>}fcxFj}`cMADLNLL`@b@n@p@</points> </polyline> <duration> <value>57</value> <text>1 min</text> </duration> <html_instructions>Head <b>southwest</b> on <b>Washington Ave</b> toward <b>Paterson Plank Rd</b></html_instructions> <distance> <value>79</value> <text>259 ft</text> </distance> </step> <step> <travel_mode>WALKING</travel_mode> <start_location> <lat>40.8173694</lat> <lng>-74.0662743</lng> </start_location> <end_location> <lat>40.8143541</lat> <lng>-74.0648063</lng> </end_location> <polyline> <points>qccxFdaacMZIZMP ...points truncated in this example</points> </polyline> <duration> <value>260</value> <text>4 mins</text> </duration> <html_instructions>Turn <b>left</b> onto <b>Paterson Plank Rd</b></html_instructions> <distance> <value>358</value> <text>0.2 mi</text> </distance> <maneuver>turn-left</maneuver> </step> <step> <travel_mode>WALKING</travel_mode> <start_location> <lat>40.8143541</lat> <lng>-74.0648063</lng> </start_location> <end_location> <lat>40.8139779</lat> <lng>-74.0652082</lng> </end_location> <polyline> <points>upbxF`x`cMTVHHFHFFFHPP</points> </polyline> <duration> <value>39</value> <text>1 min</text> </duration> <html_instructions>Turn <b>right</b> toward <b>N Connection Rd</b></html_instructions> <distance> <value>54</value> <text>177 ft</text> </distance> <maneuver>turn-right</maneuver> </step> <step> <travel_mode>WALKING</travel_mode> <start_location> <lat>40.8139779</lat> <lng>-74.0652082</lng> </start_location> <end_location> <lat>40.8138003</lat> <lng>-74.0669371</lng> </end_location> <polyline> <points>knbxFpz`cMDzATtDFfA</points> </polyline> <duration> <value>105</value> <text>2 mins</text> </duration> <html_instructions>Turn <b>right</b> onto <b>N Connection Rd</b></html_instructions> <distance> <value>147</value> <text>482 ft</text> </distance> <maneuver>turn-right</maneuver> </step> <step> <travel_mode>WALKING</travel_mode> <start_location> <lat>40.8138003</lat> <lng>-74.0669371</lng> </start_location> <end_location> <lat>40.8149711</lat> <lng>-74.0728354</lng> </end_location> <polyline> <points>gmbxFjeacMDjA@ ...points truncated in this example</points> </polyline> <duration> <value>395</value> <text>7 mins</text> </duration> <html_instructions>Continue onto <b>Rd D</b></html_instructions> <distance> <value>548</value> <text>0.3 mi</text> </distance> </step> <step> <travel_mode>WALKING</travel_mode> <start_location> <lat>40.8149711</lat> <lng>-74.0728354</lng> </start_location> <end_location> <lat>40.8145050</lat> <lng>-74.0727291</lng> </end_location> <polyline> <points>qtbxFfjbcMf@AHAFA^MBA</points> </polyline> <duration> <value>38</value> <text>1 min</text> </duration> <html_instructions>Turn <b>left</b> onto <b>MetLife Stadium Dr</b><div style="font-size:0.9em">Destination will be on the right</div></html_instructions> <distance> <value>53</value> <text>174 ft</text> </distance> <maneuver>turn-left</maneuver> </step> </step> <duration> <value>2918</value> <text>49 mins</text> </duration> <distance> <value>16273</value> <text>10.1 mi</text> </distance> <start_location> <lat>40.7428444</lat> <lng>-74.0058702</lng> </start_location> <end_location> <lat>40.8145050</lat> <lng>-74.0727291</lng> </end_location> <start_address>75 Ninth Ave, New York, NY 10011, USA</start_address> <end_address>1 MetLife Stadium Dr, East Rutherford, NJ 07073, USA</end_address> <departure_time> <value>1447185623</value> <text>3:00pm</text> <time_zone>America/New_York</time_zone> </departure_time> <arrival_time> <value>1447188541</value> <text>3:49pm</text> <time_zone>America/New_York</time_zone> </arrival_time> </leg> <copyrights>Map data ©2015 Google</copyrights> <overview_polyline> <points>wqtwFtgubMdKcYk^ ...points truncated in this example</points> </overview_polyline> <warning>Walking directions are in beta. Use caution – This route may be missing sidewalks or pedestrian paths.</warning> <bounds> <southwest> <lat>40.7408930</lat> <lng>-74.0728354</lng> </southwest> <northeast> <lat>40.8179235</lat> <lng>-73.9897350</lng> </northeast> </bounds> </route> <geocoded_waypoint> <geocoder_status>OK</geocoder_status> <type>premise</type> <place_id>ChIJyYfhZ79ZwokRMtXcL6CYxkA</place_id> </geocoded_waypoint> <geocoded_waypoint> <geocoder_status>OK</geocoder_status> <type>street_address</type> <partial_match>true</partial_match> <place_id>ChIJ8YWMWnz4wokRCOVf1CcJCbY</place_id> </geocoded_waypoint> </DirectionsResponse>
JSON

Response

{ "geocoded_waypoints" : [ { "geocoder_status" : "OK", "place_id" : "ChIJyYfhZ79ZwokRMtXcL6CYxkA", "types" : [ "premise" ] }, { "geocoder_status" : "OK", "partial_match" : true, "place_id" : "ChIJ8YWMWnz4wokRCOVf1CcJCbY", "types" : [ "street_address" ] } ], "routes" : [ { "bounds" : { "northeast" : { "lat" : 40.8179235, "lng" : -73.989735 }, "southwest" : { "lat" : 40.740893, "lng" : -74.0728354 } }, "copyrights" : "Map data ©2015 Google", "legs" : [ { "arrival_time" : { "text" : "3:49pm", "time_zone" : "America/New_York", "value" : 1447188541 }, "departure_time" : { "text" : "3:00pm", "time_zone" : "America/New_York", "value" : 1447185623 }, "distance" : { "text" : "10.1 mi", "value" : 16273 }, "duration" : { "text" : "49 mins", "value" : 2918 }, "end_address" : "1 MetLife Stadium Dr, East Rutherford, NJ 07073, USA", "end_location" : { "lat" : 40.814505, "lng" : -74.07272910000002 }, "start_address" : "75 Ninth Ave, New York, NY 10011, USA", "start_location" : { "lat" : 40.7428444, "lng" : -74.00587019999999 }, "steps" : [ { "distance" : { "text" : "0.3 mi", "value" : 413 }, "duration" : { "text" : "7 mins", "value" : 397 }, "end_location" : { "lat" : 40.740893, "lng" : -74.00169 }, "html_instructions" : "Walk to 14 St", "polyline" : { "points" : "wqtwFtgubMdKcY" }, "start_location" : { "lat" : 40.7428444, "lng" : -74.00587019999999 }, "steps" : [ { "distance" : { "text" : "0.3 mi", "value" : 413 }, "duration" : { "text" : "7 mins", "value" : 397 }, "end_location" : { "lat" : 40.740893, "lng" : -74.00169 }, "polyline" : { "points" : "wqtwFtgubMdKcY" }, "start_location" : { "lat" : 40.7428444, "lng" : -74.00587019999999 }, "travel_mode" : "WALKING" } ], "travel_mode" : "WALKING" }, { "distance" : { "text" : "1.3 mi", "value" : 2084 }, "duration" : { "text" : "5 mins", "value" : 270 }, "end_location" : { "lat" : 40.75730799999999, "lng" : -73.989735 }, "html_instructions" : "Subway towards Inwood - 207 St", "polyline" : { "points" : "qetwFpmtbMk^yU{f@a\\k^yU" }, "start_location" : { "lat" : 40.740893, "lng" : -74.00169 }, "transit_details" : { "arrival_stop" : { "location" : { "lat" : 40.75730799999999, "lng" : -73.989735 }, "name" : "42 St - Port Authority Bus Terminal" }, "arrival_time" : { "text" : "3:11pm", "time_zone" : "America/New_York", "value" : 1447186290 }, "departure_stop" : { "location" : { "lat" : 40.740893, "lng" : -74.00169 }, "name" : "14 St" }, "departure_time" : { "text" : "3:07pm", "time_zone" : "America/New_York", "value" : 1447186020 }, "headsign" : "Inwood - 207 St", "line" : { "agencies" : [ { "name" : "MTA New York City Transit", "phone" : "1 (718) 330-1234", "url" : "http://www.mta.info/" } ], "color" : "#2850ad", "icon" : "//maps.gstatic.com/mapfiles/transit/iw2/6/us-ny-mta/A.png", "name" : "8 Avenue Express", "short_name" : "A", "text_color" : "#ffffff", "url" : "http://web.mta.info/nyct/service/pdf/tacur.pdf", "vehicle" : { "icon" : "//maps.gstatic.com/mapfiles/transit/iw2/6/subway.png", "name" : "Subway", "type" : "SUBWAY" } }, "num_stops" : 2 }, "travel_mode" : "TRANSIT" }, { "distance" : { "text" : "443 ft", "value" : 135 }, "duration" : { "text" : "2 mins", "value" : 135 }, "end_location" : { "lat" : 40.756367, "lng" : -73.990753 }, "html_instructions" : "Walk to Port Authority Bus Terminal", "polyline" : { "points" : "elwwFzbrbMzDhE" }, "start_location" : { "lat" : 40.75730799999999, "lng" : -73.989735 }, "steps" : [ { "distance" : { "text" : "443 ft", "value" : 135 }, "duration" : { "text" : "2 mins", "value" : 135 }, "end_location" : { "lat" : 40.756367, "lng" : -73.990753 }, "polyline" : { "points" : "elwwFzbrbMzDhE" }, "start_location" : { "lat" : 40.75730799999999, "lng" : -73.989735 }, "travel_mode" : "WALKING" } ], "travel_mode" : "WALKING" }, { "distance" : { "text" : "7.7 mi", "value" : 12402 }, "duration" : { "text" : "14 mins", "value" : 846 }, "end_location" : { "lat" : 40.817908, "lng" : -74.065663 }, "html_instructions" : "Bus towards 161 Paterson", "polyline" : { "points" : "ifwwFdirbM\ ...points truncated in this example" }, "start_location" : { "lat" : 40.756367, "lng" : -73.990753 }, "transit_details" : { "arrival_stop" : { "location" : { "lat" : 40.817908, "lng" : -74.065663 }, "name" : "Washington Ave at Paterson Plank Rd" }, "arrival_time" : { "text" : "3:34pm", "time_zone" : "America/New_York", "value" : 1447187646 }, "departure_stop" : { "location" : { "lat" : 40.756367, "lng" : -73.990753 }, "name" : "Port Authority Bus Terminal" }, "departure_time" : { "text" : "3:20pm", "time_zone" : "America/New_York", "value" : 1447186800 }, "headsign" : "161 Paterson", "line" : { "agencies" : [ { "name" : "NJ TRANSIT BUS", "url" : "http://www.njtransit.com/" } ], "short_name" : "161", "vehicle" : { "icon" : "//maps.gstatic.com/mapfiles/transit/iw2/6/bus.png", "name" : "Bus", "type" : "BUS" } }, "num_stops" : 1 }, "travel_mode" : "TRANSIT" }, { "distance" : { "text" : "0.8 mi", "value" : 1239 }, "duration" : { "text" : "15 mins", "value" : 894 }, "end_location" : { "lat" : 40.814505, "lng" : -74.07272910000002 }, "html_instructions" : "Walk to 1 MetLife Stadium Dr, East Rutherford, NJ 07073, USA", "polyline" : { "points" : "}fcxFj}`cMADL ...points truncated in this example" }, "start_location" : { "lat" : 40.817908, "lng" : -74.065663 }, "steps" : [ { "distance" : { "text" : "259 ft", "value" : 79 }, "duration" : { "text" : "1 min", "value" : 57 }, "end_location" : { "lat" : 40.8173694, "lng" : -74.0662743 }, "html_instructions" : "Head \u003cb\u003esouthwest\u003c/b\u003e on \u003cb\u003eWashington Ave\u003c/b\u003e toward \u003cb\u003ePaterson Plank Rd\u003c/b\u003e", "polyline" : { "points" : "}fcxFj}`cMADLNLL`@b@n@p@" }, "start_location" : { "lat" : 40.817908, "lng" : -74.065663 }, "travel_mode" : "WALKING" }, { "distance" : { "text" : "0.2 mi", "value" : 358 }, "duration" : { "text" : "4 mins", "value" : 260 }, "end_location" : { "lat" : 40.8143541, "lng" : -74.0648063 }, "html_instructions" : "Turn \u003cb\u003eleft\u003c/b\u003e onto \u003cb\u003ePaterson Plank Rd\u003c/b\u003e", "maneuver" : "turn-left", "polyline" : { "points" : "qccxFdaacM ...points truncated in this example" }, "start_location" : { "lat" : 40.8173694, "lng" : -74.0662743 }, "travel_mode" : "WALKING" }, { "distance" : { "text" : "177 ft", "value" : 54 }, "duration" : { "text" : "1 min", "value" : 39 }, "end_location" : { "lat" : 40.8139779, "lng" : -74.0652082 }, "html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e toward \u003cb\u003eN Connection Rd\u003c/b\u003e", "maneuver" : "turn-right", "polyline" : { "points" : "upbxF`x`cMTVHHFHFFFHPP" }, "start_location" : { "lat" : 40.8143541, "lng" : -74.0648063 }, "travel_mode" : "WALKING" }, { "distance" : { "text" : "482 ft", "value" : 147 }, "duration" : { "text" : "2 mins", "value" : 105 }, "end_location" : { "lat" : 40.8138003, "lng" : -74.06693709999999 }, "html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e onto \u003cb\u003eN Connection Rd\u003c/b\u003e", "maneuver" : "turn-right", "polyline" : { "points" : "knbxFpz`cMDzATtDFfA" }, "start_location" : { "lat" : 40.8139779, "lng" : -74.0652082 }, "travel_mode" : "WALKING" }, { "distance" : { "text" : "0.3 mi", "value" : 548 }, "duration" : { "text" : "7 mins", "value" : 395 }, "end_location" : { "lat" : 40.8149711, "lng" : -74.0728354 }, "html_instructions" : "Continue onto \u003cb\u003eRd D\u003c/b\u003e", "polyline" : { "points" : "gmbxFjeacMD ...points truncated in this example" }, "start_location" : { "lat" : 40.8138003, "lng" : -74.06693709999999 }, "travel_mode" : "WALKING" }, { "distance" : { "text" : "174 ft", "value" : 53 }, "duration" : { "text" : "1 min", "value" : 38 }, "end_location" : { "lat" : 40.814505, "lng" : -74.07272910000002 }, "html_instructions" : "Turn \u003cb\u003eleft\u003c/b\u003e onto \u003cb\u003eMetLife Stadium Dr\u003c/b\u003e\u003cdiv style=\"font-size:0.9em\"\u003eDestination will be on the right\u003c/div\u003e", "maneuver" : "turn-left", "polyline" : { "points" : "qtbxFfjbcMf@AHAFA^MBA" }, "start_location" : { "lat" : 40.8149711, "lng" : -74.0728354 }, "travel_mode" : "WALKING" } ], "travel_mode" : "WALKING" } ], "via_waypoint" : [] } ], "overview_polyline" : { "points" : "wqtwFtgub ...points truncated in this example" }, "summary" : "", "warnings" : [ "Walking directions are in beta. Use caution – This route may be missing sidewalks or pedestrian paths." ], "waypoint_order" : [] } ], "status" : "OK" }
Waypoints

Request

origin: New York, NY destination: Boston, MA waypoints: optimize:true|Providence, RI|Hartford, CT mode: driving key: API_KEY

URL

https://maps.googleapis.com/maps/api/directions/json?origin=New+York,+NY&destination=Boston,+MA&waypoints=optimize:true|Providence,+RI|Hartford,+CT&key=YOUR_API_KEY
XML

Response

<?xml version="1.0" encoding="UTF-8"?> <DirectionsResponse> <status>OK</status> <route> <summary>I-95 N and CT-15 N</summary> <leg> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7126526</lat> <lng>-74.0065973</lng> </start_location> <end_location> <lat>40.7130849</lat> <lng>-74.0072188</lng> </end_location> <polyline> <points>aunwFflubMy@fB[R</points> </polyline> <duration> <value>9</value> <text>1 min</text> </duration> <html_instructions>Head <b>northwest</b> on <b>Steve Flanders Square</b> toward <b>Broadway</b>/<b>Canyon of Heroes</b><div style="font-size:0.9em">Restricted usage road</div></html_instructions> <distance> <value>73</value> <text>240 ft</text> </distance> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7130849</lat> <lng>-74.0072188</lng> </start_location> <end_location> <lat>40.7114005</lat> <lng>-74.0086398</lng> </end_location> <polyline> <points>wwnwFbpubMdBtARN|AhAvBjB</points> </polyline> <duration> <value>96</value> <text>2 mins</text> </duration> <html_instructions>Turn <b>left</b> onto <b>Broadway</b></html_instructions> <distance> <value>222</value> <text>0.1 mi</text> </distance> <maneuver>turn-left</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7114005</lat> <lng>-74.0086398</lng> </start_location> <end_location> <lat>40.7119752</lat> <lng>-74.0058488</lng> </end_location> <polyline> <points>gmnwF~xubMDc@@G?GAGAOOaAm@}Da@cCMq@Ik@</points> </polyline> <duration> <value>54</value> <text>1 min</text> </duration> <html_instructions>Turn <b>left</b> onto <b>Park Row</b></html_instructions> <distance> <value>246</value> <text>0.2 mi</text> </distance> <maneuver>turn-left</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7119752</lat> <lng>-74.0058488</lng> </start_location> <end_location> <lat>40.7094901</lat> <lng>-74.0016720</lng> </end_location> <polyline> <points>{pnwFpgubM@K@CE{@?CAK?E?I@I@M?A@C@GBG@CVa@JKNWZi@Zi@\k@x@wAR_@HKn@}@p@aAbD{E</points> </polyline> <duration> <value>112</value> <text>2 mins</text> </duration> <html_instructions>Slight <b>right</b> onto <b>Frankfort St</b></html_instructions> <distance> <value>463</value> <text>0.3 mi</text> </distance> <maneuver>turn-slight-right</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7094901</lat> <lng>-74.0016720</lng> </start_location> <end_location> <lat>40.7095586</lat> <lng>-74.0015825</lng> </end_location> <polyline> <points>ianwFlmtbMMQ</points> </polyline> <duration> <value>25</value> <text>1 min</text> </duration> <html_instructions>Turn <b>left</b> onto <b>Pearl St</b></html_instructions> <distance> <value>11</value> <text>36 ft</text> </distance> <maneuver>turn-left</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7095586</lat> <lng>-74.0015825</lng> </start_location> <end_location> <lat>40.7093020</lat> <lng>-73.9941819</lng> </end_location> <polyline> <points>wanwFzltbM ...points truncated in this example</points> </polyline> <duration> <value>60</value> <text>1 min</text> </duration> <html_instructions>Take the <b>FDR Drive N</b> ramp</html_instructions> <distance> <value>746</value> <text>0.5 mi</text> </distance> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7093020</lat> <lng>-73.9941819</lng> </start_location> <end_location> <lat>40.7973977</lat> <lng>-73.9291616</lng> </end_location> <polyline> <points>c`nwFr~rbMCi@ ...points truncated in this example</points> </polyline> <duration> <value>744</value> <text>12 mins</text> </duration> <html_instructions>Merge onto <b>FDR Drive</b></html_instructions> <distance> <value>12429</value> <text>7.7 mi</text> </distance> <maneuver>merge</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7973977</lat> <lng>-73.9291616</lng> </start_location> <end_location> <lat>40.8009073</lat> <lng>-73.9292939</lng> </end_location> <polyline> <points>wf_xFfhfbM}@ ...points truncated in this example</points> </polyline> <duration> <value>45</value> <text>1 min</text> </duration> <html_instructions>Take exit <b>17</b> on the <b>left</b> for <b>Toll Bridge</b> toward <b>I-278</b>/<b>Bruckner Expy</b>/<b>Grand Central Pkwy</b><div style="font-size:0.9em">Toll road</div></html_instructions> <distance> <value>679</value> <text>0.4 mi</text> </distance> <maneuver>ramp-left</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.8009073</lat> <lng>-73.9292939</lng> </start_location> <end_location> <lat>40.7977328</lat> <lng>-73.9224261</lng> </end_location> <polyline> <points>u|_xF`ifbMnEkNh@ ...points truncated in this example</points> </polyline> <duration> <value>66</value> <text>1 min</text> </duration> <html_instructions>Continue onto <b>New York State Reference Rte 900G</b>/<b>Robert F. Kennedy Bridge</b><div style="font-size:0.9em">Partial toll road</div></html_instructions> <distance> <value>679</value> <text>0.4 mi</text> </distance> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7977328</lat> <lng>-73.9224261</lng> </start_location> <end_location> <lat>40.7978505</lat> <lng>-73.9196151</lng> </end_location> <polyline> <points>yh_xFd~dbMPo@ ...points truncated in this example</points> </polyline> <duration> <value>38</value> <text>1 min</text> </duration> <html_instructions>Take the <b>Interstate 278 E</b> exit on the <b>left</b> toward <b>Bronx</b>/<b>New England</b>/<b>Interstate 87 N</b>/<b>Upstate N Y</b></html_instructions> <distance> <value>480</value> <text>0.3 mi</text> </distance> <maneuver>ramp-left</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7978505</lat> <lng>-73.9196151</lng> </start_location> <end_location> <lat>40.8017480</lat> <lng>-73.9167993</lng> </end_location> <polyline> <points>qi_xFrldbMAAIGA?_@WsBwAa@Wi@]i@]sCkBsCkBKGIGUOKGKGe@[g@[[S]Q</points> </polyline> <duration> <value>32</value> <text>1 min</text> </duration> <html_instructions>Merge onto <b>I-278 E</b><div style="font-size:0.9em">Partial toll road</div></html_instructions> <distance> <value>494</value> <text>0.3 mi</text> </distance> <maneuver>merge</maneuver> </step> ... Additional results truncated in this example[] ... <copyrights>Map data ©2015 Google</copyrights> <overview_polyline> <points>aunwFflubMdCuCl@ ...points truncated in this example</points> </overview_polyline> <waypoint_index>1</waypoint_index> <waypoint_index>0</waypoint_index> <bounds> <southwest> <lat>40.7087115</lat> <lng>-74.0065973</lng> </southwest> <northeast> <lat>42.3610870</lat> <lng>-71.0206956</lng> </northeast> </bounds> </route> <geocoded_waypoint> <geocoder_status>OK</geocoder_status> <type>locality</type> <type>political</type> <place_id>ChIJOwg_06VPwokRYv534QaPC8g</place_id> </geocoded_waypoint> <geocoded_waypoint> <geocoder_status>OK</geocoder_status> <type>locality</type> <type>political</type> <place_id>ChIJpVER8hFT5okRmVl96ahKjsw</place_id> </geocoded_waypoint> <geocoded_waypoint> <geocoder_status>OK</geocoder_status> <type>locality</type> <type>political</type> <place_id>ChIJXXN-Q-BE5IkRJ7azSE1832k</place_id> </geocoded_waypoint> <geocoded_waypoint> <geocoder_status>OK</geocoder_status> <type>locality</type> <type>political</type> <place_id>ChIJGzE9DS1l44kRoOhiASS_fHg</place_id> </geocoded_waypoint> </DirectionsResponse>
JSON

Response

{ "geocoded_waypoints" : [ { "geocoder_status" : "OK", "place_id" : "ChIJOwg_06VPwokRYv534QaPC8g", "types" : [ "locality", "political" ] }, { "geocoder_status" : "OK", "place_id" : "ChIJpVER8hFT5okRmVl96ahKjsw", "types" : [ "locality", "political" ] }, { "geocoder_status" : "OK", "place_id" : "ChIJXXN-Q-BE5IkRJ7azSE1832k", "types" : [ "locality", "political" ] }, { "geocoder_status" : "OK", "place_id" : "ChIJGzE9DS1l44kRoOhiASS_fHg", "types" : [ "locality", "political" ] } ], "routes" : [ { "bounds" : { "northeast" : { "lat" : 42.361087, "lng" : -71.0206956 }, "southwest" : { "lat" : 40.7087115, "lng" : -74.0065973 } }, "copyrights" : "Map data ©2015 Google", "legs" : [ { "distance" : { "text" : "117 mi", "value" : 188034 }, "duration" : { "text" : "2 hours 12 mins", "value" : 7897 }, "end_address" : "Hartford, CT, USA", "end_location" : { "lat" : 41.7637157, "lng" : -72.6852925 }, "start_address" : "New York, NY, USA", "start_location" : { "lat" : 40.71265260000001, "lng" : -74.0065973 }, "steps" : [ { "distance" : { "text" : "240 ft", "value" : 73 }, "duration" : { "text" : "1 min", "value" : 9 }, "end_location" : { "lat" : 40.7130849, "lng" : -74.00721879999999 }, "html_instructions" : "Head \u003cb\u003enorthwest\u003c/b\u003e on \u003cb\u003eSteve Flanders Square\u003c/b\u003e toward \u003cb\u003eBroadway\u003c/b\u003e/\u003cb\u003eCanyon of Heroes\u003c/b\u003e\u003cdiv style=\"font-size:0.9em\"\u003eRestricted usage road\u003c/div\u003e", "polyline" : { "points" : "aunwFflubMy@fB[R" }, "start_location" : { "lat" : 40.71265260000001, "lng" : -74.0065973 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.1 mi", "value" : 222 }, "duration" : { "text" : "2 mins", "value" : 96 }, "end_location" : { "lat" : 40.7114005, "lng" : -74.0086398 }, "html_instructions" : "Turn \u003cb\u003eleft\u003c/b\u003e onto \u003cb\u003eBroadway\u003c/b\u003e", "maneuver" : "turn-left", "polyline" : { "points" : "wwnwFbpubMdBtARN|AhAvBjB" }, "start_location" : { "lat" : 40.7130849, "lng" : -74.00721879999999 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.2 mi", "value" : 246 }, "duration" : { "text" : "1 min", "value" : 54 }, "end_location" : { "lat" : 40.7119752, "lng" : -74.0058488 }, "html_instructions" : "Turn \u003cb\u003eleft\u003c/b\u003e onto \u003cb\u003ePark Row\u003c/b\u003e", "maneuver" : "turn-left", "polyline" : { "points" : "gmnwF~xubMDc@@G?GAGAOOaAm@}Da@cCMq@Ik@" }, "start_location" : { "lat" : 40.7114005, "lng" : -74.0086398 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.3 mi", "value" : 463 }, "duration" : { "text" : "2 mins", "value" : 112 }, "end_location" : { "lat" : 40.7094901, "lng" : -74.001672 }, "html_instructions" : "Slight \u003cb\u003eright\u003c/b\u003e onto \u003cb\u003eFrankfort St\u003c/b\u003e", "maneuver" : "turn-slight-right", "polyline" : { "points" : "{pnwFpgubM@K@CE{@ ...points truncated in this example" }, "start_location" : { "lat" : 40.7119752, "lng" : -74.0058488 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "36 ft", "value" : 11 }, "duration" : { "text" : "1 min", "value" : 25 }, "end_location" : { "lat" : 40.7095586, "lng" : -74.0015825 }, "html_instructions" : "Turn \u003cb\u003eleft\u003c/b\u003e onto \u003cb\u003ePearl St\u003c/b\u003e", "maneuver" : "turn-left", "polyline" : { "points" : "ianwFlmtbMMQ" }, "start_location" : { "lat" : 40.7094901, "lng" : -74.001672 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.5 mi", "value" : 746 }, "duration" : { "text" : "1 min", "value" : 60 }, "end_location" : { "lat" : 40.709302, "lng" : -73.9941819 }, "html_instructions" : "Take the \u003cb\u003eFDR Drive N\u003c/b\u003e ramp", "polyline" : { "points" : "wanwFzltbMCS ...points truncated in this example" }, "start_location" : { "lat" : 40.7095586, "lng" : -74.0015825 }, "travel_mode" : "DRIVING" }, ... Additional results truncated in this example[] ... ], "via_waypoint" : [] }, { "distance" : { "text" : "87.3 mi", "value" : 140570 }, "duration" : { "text" : "1 hour 33 mins", "value" : 5603 }, "end_address" : "Providence, RI, USA", "end_location" : { "lat" : 41.8238542, "lng" : -71.412656 }, "start_address" : "Hartford, CT, USA", "start_location" : { "lat" : 41.7637157, "lng" : -72.6852925 }, "steps" : [ { "distance" : { "text" : "164 ft", "value" : 50 }, "duration" : { "text" : "1 min", "value" : 11 }, "end_location" : { "lat" : 41.7641617, "lng" : -72.6852741 }, "html_instructions" : "Head \u003cb\u003enorth\u003c/b\u003e on \u003cb\u003eHungerford St\u003c/b\u003e toward \u003cb\u003eMichael J Fallon Way\u003c/b\u003e", "polyline" : { "points" : "g~{}F`jszLa@?u@C" }, "start_location" : { "lat" : 41.7637157, "lng" : -72.6852925 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "364 ft", "value" : 111 }, "duration" : { "text" : "1 min", "value" : 26 }, "end_location" : { "lat" : 41.7642071, "lng" : -72.68661609999999 }, "html_instructions" : "Turn \u003cb\u003eleft\u003c/b\u003e onto \u003cb\u003eMichael J Fallon Way\u003c/b\u003e", "maneuver" : "turn-left", "polyline" : { "points" : "_a|}F|iszL?@CrBEvC" }, "start_location" : { "lat" : 41.7641617, "lng" : -72.6852741 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.1 mi", "value" : 219 }, "duration" : { "text" : "1 min", "value" : 32 }, "end_location" : { "lat" : 41.7661707, "lng" : -72.68643109999999 }, "html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e onto \u003cb\u003eBroad St\u003c/b\u003e", "maneuver" : "turn-right", "polyline" : { "points" : "ia|}FjrszL_GUg@Ci@Cu@G" }, "start_location" : { "lat" : 41.7642071, "lng" : -72.68661609999999 }, "travel_mode" : "DRIVING" }, ... Additional results truncated in this example[] ... ], "via_waypoint" : [] }, { "distance" : { "text" : "50.2 mi", "value" : 80771 }, "duration" : { "text" : "59 mins", "value" : 3519 }, "end_address" : "Boston, MA, USA", "end_location" : { "lat" : 42.359824, "lng" : -71.05981249999999 }, "start_address" : "Providence, RI, USA", "start_location" : { "lat" : 41.8238542, "lng" : -71.412656 }, "steps" : [ { "distance" : { "text" : "98 ft", "value" : 30 }, "duration" : { "text" : "1 min", "value" : 10 }, "end_location" : { "lat" : 41.8236618, "lng" : -71.41291819999999 }, "html_instructions" : "Head \u003cb\u003esouthwest\u003c/b\u003e on \u003cb\u003eFulton St\u003c/b\u003e toward \u003cb\u003eEddy St\u003c/b\u003e", "polyline" : { "points" : "avg~FbxzrLd@r@" }, "start_location" : { "lat" : 41.8238542, "lng" : -71.412656 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "249 ft", "value" : 76 }, "duration" : { "text" : "1 min", "value" : 36 }, "end_location" : { "lat" : 41.8231424, "lng" : -71.4123232 }, "html_instructions" : "Turn \u003cb\u003eleft\u003c/b\u003e onto \u003cb\u003eEddy St\u003c/b\u003e", "maneuver" : "turn-left", "polyline" : { "points" : "{tg~FvyzrLr@y@r@}@" }, "start_location" : { "lat" : 41.8236618, "lng" : -71.41291819999999 }, "travel_mode" : "DRIVING" }, ... Additional results truncated in this example[] ... ], "via_waypoint" : [] } ], "overview_polyline" : { "points" : "aunwFflubMd ...points truncated in this example" }, "summary" : "I-95 N and CT-15 N", "warnings" : [], "waypoint_order" : [ 1, 0 ] } ], "status" : "OK" }
Travel Time

Request

origin: 75 9th Ave New York, NY destination: MetLife Stadium Dr East Rutherford, NJ 07073 departure_time: 1541202457 traffic_model: best_guess mode: driving key: API_KEY

URL

https://maps.googleapis.com/maps/api/directions/json?origin=75+9th+Ave+New+York,+NY&destination=MetLife+Stadium+1+MetLife+Stadium+Dr+East+Rutherford,+NJ+07073&departure_time=1541202457&traffic_model=best_guess&key=YOUR_API_KEY
XML

Response

<?xml version="1.0" encoding="UTF-8"?> <DirectionsResponse> <status>OK</status> <route> <summary>NJ-495 W and NJ-3 W</summary> <leg> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7428759</lat> <lng>-74.0058472</lng> </start_location> <end_location> <lat>40.7422925</lat> <lng>-74.0044570</lng> </end_location> <polyline> <points>_rtwFpgubMtBuG</points> </polyline> <duration> <value>34</value> <text>1 min</text> </duration> <html_instructions>Head <b>southeast</b> on <b>W 16th St</b> toward <b>Ninth Ave</b></html_instructions> <distance> <value>134</value> <text>440 ft</text> </distance> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7422925</lat> <lng>-74.0044570</lng> </start_location> <end_location> <lat>40.7421744</lat> <lng>-74.0045361</lng> </end_location> <polyline> <points>intwFz~tbMVN</points> </polyline> <duration> <value>29</value> <text>1 min</text> </duration> <html_instructions>Turn <b>right</b> at the 1st cross street onto <b>Ninth Ave</b></html_instructions> <distance> <value>15</value> <text>49 ft</text> </distance> <maneuver>turn-right</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7421744</lat> <lng>-74.0045361</lng> </start_location> <end_location> <lat>40.7416627</lat> <lng>-74.0049708</lng> </end_location> <polyline> <points>qmtwFj_ubMDN@@?@JFXP`@VTN</points> </polyline> <duration> <value>24</value> <text>1 min</text> </duration> <html_instructions>Slight <b>right</b> to stay on <b>Ninth Ave</b></html_instructions> <distance> <value>69</value> <text>226 ft</text> </distance> <maneuver>turn-slight-right</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7416627</lat> <lng>-74.0049708</lng> </start_location> <end_location> <lat>40.7428273</lat> <lng>-74.0077346</lng> </end_location> <polyline> <points>kjtwF`bubMIVeBlFEN{A|EWr@</points> </polyline> <duration> <value>74</value> <text>1 min</text> </duration> <html_instructions>Turn <b>right</b> onto <b>W 15th St</b></html_instructions> <distance> <value>266</value> <text>0.2 mi</text> </distance> <maneuver>turn-right</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7428273</lat> <lng>-74.0077346</lng> </start_location> <end_location> <lat>40.7577372</lat> <lng>-73.9968540</lng> </end_location> <polyline> <points>uqtwFhsubMo@c@ ...points truncated in this example</points> </polyline> <duration> <value>365</value> <text>6 mins</text> </duration> <html_instructions>Turn <b>right</b> at the 1st cross street onto <b>10th Ave</b></html_instructions> <distance> <value>1894</value> <text>1.2 mi</text> </distance> <maneuver>turn-right</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7577372</lat> <lng>-73.9968540</lng> </start_location> <end_location> <lat>40.7581447</lat> <lng>-73.9977895</lng> </end_location> <polyline> <points>{nwwFhosbMoAzD</points> </polyline> <duration> <value>25</value> <text>1 min</text> </duration> <html_instructions>Turn <b>left</b> onto <b>W 39th St</b></html_instructions> <distance> <value>91</value> <text>299 ft</text> </distance> <maneuver>turn-left</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7581447</lat> <lng>-73.9977895</lng> </start_location> <end_location> <lat>40.7631296</lat> <lng>-74.0094858</lng> </end_location> <polyline> <points>kqwwFdusbMSTINS^ ...points truncated in this example</points> </polyline> <duration> <value>90</value> <text>2 mins</text> </duration> <html_instructions>Slight <b>left</b> onto <b>NY-495 W</b><div style="font-size:0.9em"></div><div style="font-size:0.9em">Entering New Jersey</div></html_instructions> <distance> <value>1134</value> <text>0.7 mi</text> </distance> <maneuver>turn-slight-left</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7631296</lat> <lng>-74.0094858</lng> </start_location> <end_location> <lat>40.7767179</lat> <lng>-74.0428130</lng> </end_location> <polyline> <points>qpxwFh~ubMsJpZ ...points truncated in this example</points> </polyline> <duration> <value>301</value> <text>5 mins</text> </duration> <html_instructions>Continue onto <b>NJ-495 W</b></html_instructions> <distance> <value>4516</value> <text>2.8 mi</text> </distance> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7767179</lat> <lng>-74.0428130</lng> </start_location> <end_location> <lat>40.7797406</lat> <lng>-74.0459794</lng> </end_location> <polyline> <points>oe{wFpn|bMc@fAE ...points truncated in this example</points> </polyline> <duration> <value>21</value> <text>1 min</text> </duration> <html_instructions>Keep <b>right</b> at the fork to continue on <b>NJ-3 W</b>, follow signs for <b>New Jersey 3 W</b>/<b>Garden State Parkway</b>/<b>Secaucus</b></html_instructions> <distance> <value>435</value> <text>0.3 mi</text> </distance> <maneuver>fork-right</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.7797406</lat> <lng>-74.0459794</lng> </start_location> <end_location> <lat>40.8041562</lat> <lng>-74.0717843</lng> </end_location> <polyline> <points>kx{wFjb}bMMJGDEB ...points truncated in this example</points> </polyline> <duration> <value>141</value> <text>2 mins</text> </duration> <html_instructions>Keep <b>left</b> to stay on <b>NJ-3 W</b>, follow signs for <b>New Jersey 3 W</b>/<b>Clifton</b></html_instructions> <distance> <value>3560</value> <text>2.2 mi</text> </distance> <maneuver>keep-left</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.8041562</lat> <lng>-74.0717843</lng> </start_location> <end_location> <lat>40.8062905</lat> <lng>-74.0724593</lng> </end_location> <polyline> <points>_q`xFrcbcMSBA?CBI ...points truncated in this example</points> </polyline> <duration> <value>13</value> <text>1 min</text> </duration> <html_instructions>Take the <b>NJ-120 N</b> exit toward <b>E Rutherford</b></html_instructions> <distance> <value>249</value> <text>0.2 mi</text> </distance> <maneuver>ramp-right</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.8062905</lat> <lng>-74.0724593</lng> </start_location> <end_location> <lat>40.8074150</lat> <lng>-74.0725091</lng> </end_location> <polyline> <points>i~`xFzgbcMaFH</points> </polyline> <duration> <value>6</value> <text>1 min</text> </duration> <html_instructions>Keep <b>left</b>, follow signs for <b>State Route 503 N</b>/<b>New Jersey 120 N</b>/<b>Washington Avenue</b>/<b>Moonachie</b>/<b>Paterson Plank Road</b></html_instructions> <distance> <value>125</value> <text>410 ft</text> </distance> <maneuver>keep-left</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.8074150</lat> <lng>-74.0725091</lng> </start_location> <end_location> <lat>40.8145647</lat> <lng>-74.0687893</lng> </end_location> <polyline> <points>keaxFdhbcMc@@ ...points truncated in this example</points> </polyline> <duration> <value>38</value> <text>1 min</text> </duration> <html_instructions>Continue onto <b>NJ-120 N</b></html_instructions> <distance> <value>869</value> <text>0.5 mi</text> </distance> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.8145647</lat> <lng>-74.0687893</lng> </start_location> <end_location> <lat>40.8170874</lat> <lng>-74.0665298</lng> </end_location> <polyline> <points>_rbxF|pacMm@c@} ...points truncated in this example</points> </polyline> <duration> <value>16</value> <text>1 min</text> </duration> <html_instructions>Continue straight onto <b>Washington Ave</b></html_instructions> <distance> <value>339</value> <text>0.2 mi</text> </distance> <maneuver>straight</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.8170874</lat> <lng>-74.0665298</lng> </start_location> <end_location> <lat>40.8143541</lat> <lng>-74.0648063</lng> </end_location> <polyline> <points>yacxFxbacME ...points truncated in this example</points> </polyline> <duration> <value>38</value> <text>1 min</text> </duration> <html_instructions>Turn <b>right</b> onto <b>Paterson Plank Rd</b></html_instructions> <distance> <value>358</value> <text>0.2 mi</text> </distance> <maneuver>turn-right</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.8143541</lat> <lng>-74.0648063</lng> </start_location> <end_location> <lat>40.8141899</lat> <lng>-74.0649819</lng> </end_location> <polyline> <points>upbxF`x`cMTVHH</points> </polyline> <duration> <value>4</value> <text>1 min</text> </duration> <html_instructions>Turn <b>right</b> toward <b>N Connection Rd</b></html_instructions> <distance> <value>24</value> <text>79 ft</text> </distance> <maneuver>turn-right</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.8141899</lat> <lng>-74.0649819</lng> </start_location> <end_location> <lat>40.8138003</lat> <lng>-74.0669371</lng> </end_location> <polyline> <points>uobxFby`cMFHFFFHPPDzATtDFfA</points> </polyline> <duration> <value>25</value> <text>1 min</text> </duration> <html_instructions>Turn <b>right</b> onto <b>N Connection Rd</b></html_instructions> <distance> <value>177</value> <text>0.1 mi</text> </distance> <maneuver>turn-right</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.8138003</lat> <lng>-74.0669371</lng> </start_location> <end_location> <lat>40.8149711</lat> <lng>-74.0728354</lng> </end_location> <polyline> <points>gmbxFjeacMDjA@ ...points truncated in this example</points> </polyline> <duration> <value>73</value> <text>1 min</text> </duration> <html_instructions>Continue straight onto <b>Rd D</b></html_instructions> <distance> <value>548</value> <text>0.3 mi</text> </distance> <maneuver>straight</maneuver> </step> <step> <travel_mode>DRIVING</travel_mode> <start_location> <lat>40.8149711</lat> <lng>-74.0728354</lng> </start_location> <end_location> <lat>40.8145050</lat> <lng>-74.0727291</lng> </end_location> <polyline> <points>qtbxFfjbcMf@AHAFA^MBA</points> </polyline> <duration> <value>28</value> <text>1 min</text> </duration> <html_instructions>Turn <b>left</b> onto <b>MetLife Stadium Dr</b><div style="font-size:0.9em">Destination will be on the right</div></html_instructions> <distance> <value>53</value> <text>174 ft</text> </distance> <maneuver>turn-left</maneuver> </step> <duration> <value>1345</value> <text>22 mins</text> </duration> <distance> <value>14856</value> <text>9.2 mi</text> </distance> <start_location> <lat>40.7428759</lat> <lng>-74.0058472</lng> </start_location> <end_location> <lat>40.8145050</lat> <lng>-74.0727291</lng> </end_location> <start_address>75 Ninth Ave, New York, NY 10011, USA</start_address> <end_address>1 MetLife Stadium Dr, East Rutherford, NJ 07073, USA</end_address> <duration_in_traffic> <value>1417</value> <text>24 mins</text> </duration_in_traffic> </leg> <copyrights>Map data ©2015 Google</copyrights> <overview_polyline> <points>_rtwFpgubMtBuG ...points truncated in this example</points> </overview_polyline> <bounds> <southwest> <lat>40.7416627</lat> <lng>-74.0728354</lng> </southwest> <northeast> <lat>40.8171321</lat> <lng>-73.9968540</lng> </northeast> </bounds> </route> <geocoded_waypoint> <geocoder_status>OK</geocoder_status> <type>premise</type> <place_id>ChIJyYfhZ79ZwokRMtXcL6CYxkA</place_id> </geocoded_waypoint> <geocoded_waypoint> <geocoder_status>OK</geocoder_status> <type>street_address</type> <partial_match>true</partial_match> <place_id>ChIJ8YWMWnz4wokRCOVf1CcJCbY</place_id> </geocoded_waypoint> </DirectionsResponse>
JSON

Response

{ "geocoded_waypoints" : [ { "geocoder_status" : "OK", "place_id" : "ChIJyYfhZ79ZwokRMtXcL6CYxkA", "types" : [ "premise" ] }, { "geocoder_status" : "OK", "partial_match" : true, "place_id" : "ChIJ8YWMWnz4wokRCOVf1CcJCbY", "types" : [ "street_address" ] } ], "routes" : [ { "bounds" : { "northeast" : { "lat" : 40.8171321, "lng" : -73.996854 }, "southwest" : { "lat" : 40.7416627, "lng" : -74.0728354 } }, "copyrights" : "Map data ©2015 Google", "legs" : [ { "distance" : { "text" : "9.2 mi", "value" : 14856 }, "duration" : { "text" : "22 mins", "value" : 1345 }, "duration_in_traffic" : { "text" : "24 mins", "value" : 1417 }, "end_address" : "1 MetLife Stadium Dr, East Rutherford, NJ 07073, USA", "end_location" : { "lat" : 40.814505, "lng" : -74.07272910000002 }, "start_address" : "75 Ninth Ave, New York, NY 10011, USA", "start_location" : { "lat" : 40.7428759, "lng" : -74.00584719999999 }, "steps" : [ { "distance" : { "text" : "440 ft", "value" : 134 }, "duration" : { "text" : "1 min", "value" : 34 }, "end_location" : { "lat" : 40.7422925, "lng" : -74.004457 }, "html_instructions" : "Head \u003cb\u003esoutheast\u003c/b\u003e on \u003cb\u003eW 16th St\u003c/b\u003e toward \u003cb\u003eNinth Ave\u003c/b\u003e", "polyline" : { "points" : "_rtwFpgubMtBuG" }, "start_location" : { "lat" : 40.7428759, "lng" : -74.00584719999999 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "49 ft", "value" : 15 }, "duration" : { "text" : "1 min", "value" : 29 }, "end_location" : { "lat" : 40.7421744, "lng" : -74.0045361 }, "html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e at the 1st cross street onto \u003cb\u003eNinth Ave\u003c/b\u003e", "maneuver" : "turn-right", "polyline" : { "points" : "intwFz~tbMVN" }, "start_location" : { "lat" : 40.7422925, "lng" : -74.004457 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "226 ft", "value" : 69 }, "duration" : { "text" : "1 min", "value" : 24 }, "end_location" : { "lat" : 40.7416627, "lng" : -74.0049708 }, "html_instructions" : "Slight \u003cb\u003eright\u003c/b\u003e to stay on \u003cb\u003eNinth Ave\u003c/b\u003e", "maneuver" : "turn-slight-right", "polyline" : { "points" : "qmtwFj_ubMDN@@?@JFXP`@VTN" }, "start_location" : { "lat" : 40.7421744, "lng" : -74.0045361 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.2 mi", "value" : 266 }, "duration" : { "text" : "1 min", "value" : 74 }, "end_location" : { "lat" : 40.74282729999999, "lng" : -74.00773459999999 }, "html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e onto \u003cb\u003eW 15th St\u003c/b\u003e", "maneuver" : "turn-right", "polyline" : { "points" : "kjtwF`bubMIVeBlFEN{A|EWr@" }, "start_location" : { "lat" : 40.7416627, "lng" : -74.0049708 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "1.2 mi", "value" : 1894 }, "duration" : { "text" : "6 mins", "value" : 365 }, "end_location" : { "lat" : 40.7577372, "lng" : -73.996854 }, "html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e at the 1st cross street onto \u003cb\u003e10th Ave\u003c/b\u003e", "maneuver" : "turn-right", "polyline" : { "points" : "uqtwFhsubMo@ ...points truncated in this example" }, "start_location" : { "lat" : 40.74282729999999, "lng" : -74.00773459999999 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "299 ft", "value" : 91 }, "duration" : { "text" : "1 min", "value" : 25 }, "end_location" : { "lat" : 40.7581447, "lng" : -73.9977895 }, "html_instructions" : "Turn \u003cb\u003eleft\u003c/b\u003e onto \u003cb\u003eW 39th St\u003c/b\u003e", "maneuver" : "turn-left", "polyline" : { "points" : "{nwwFhosbMoAzD" }, "start_location" : { "lat" : 40.7577372, "lng" : -73.996854 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.7 mi", "value" : 1134 }, "duration" : { "text" : "2 mins", "value" : 90 }, "end_location" : { "lat" : 40.7631296, "lng" : -74.00948579999999 }, "html_instructions" : "Slight \u003cb\u003eleft\u003c/b\u003e onto \u003cb\u003eNY-495 W\u003c/b\u003e\u003cdiv style=\"font-size:0.9em\"\u003e\u003c/div\u003e\u003cdiv style=\"font-size:0.9em\"\u003eEntering New Jersey\u003c/div\u003e", "maneuver" : "turn-slight-left", "polyline" : { "points" : "kqwwFdusbMSTINS^ ...points truncated in this example" }, "start_location" : { "lat" : 40.7581447, "lng" : -73.9977895 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "2.8 mi", "value" : 4516 }, "duration" : { "text" : "5 mins", "value" : 301 }, "end_location" : { "lat" : 40.7767179, "lng" : -74.042813 }, "html_instructions" : "Continue onto \u003cb\u003eNJ-495 W\u003c/b\u003e", "polyline" : { "points" : "qpxwFh~ubM ...points truncated in this example" }, "start_location" : { "lat" : 40.7631296, "lng" : -74.00948579999999 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.3 mi", "value" : 435 }, "duration" : { "text" : "1 min", "value" : 21 }, "end_location" : { "lat" : 40.7797406, "lng" : -74.04597939999999 }, "html_instructions" : "Keep \u003cb\u003eright\u003c/b\u003e at the fork to continue on \u003cb\u003eNJ-3 W\u003c/b\u003e, follow signs for \u003cb\u003eNew Jersey 3 W\u003c/b\u003e/\u003cb\u003eGarden State Parkway\u003c/b\u003e/\u003cb\u003eSecaucus\u003c/b\u003e", "maneuver" : "fork-right", "polyline" : { "points" : "oe{wFpn|bMc@ ...points truncated in this example" }, "start_location" : { "lat" : 40.7767179, "lng" : -74.042813 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "2.2 mi", "value" : 3560 }, "duration" : { "text" : "2 mins", "value" : 141 }, "end_location" : { "lat" : 40.8041562, "lng" : -74.0717843 }, "html_instructions" : "Keep \u003cb\u003eleft\u003c/b\u003e to stay on \u003cb\u003eNJ-3 W\u003c/b\u003e, follow signs for \u003cb\u003eNew Jersey 3 W\u003c/b\u003e/\u003cb\u003eClifton\u003c/b\u003e", "maneuver" : "keep-left", "polyline" : { "points" : "kx{wFjb}bMM ...points truncated in this example" }, "start_location" : { "lat" : 40.7797406, "lng" : -74.04597939999999 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.2 mi", "value" : 249 }, "duration" : { "text" : "1 min", "value" : 13 }, "end_location" : { "lat" : 40.8062905, "lng" : -74.07245929999999 }, "html_instructions" : "Take the \u003cb\u003eNJ-120 N\u003c/b\u003e exit toward \u003cb\u003eE Rutherford\u003c/b\u003e", "maneuver" : "ramp-right", "polyline" : { "points" : "_q`xFrcbcMSBA? ...points truncated in this example" }, "start_location" : { "lat" : 40.8041562, "lng" : -74.0717843 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "410 ft", "value" : 125 }, "duration" : { "text" : "1 min", "value" : 6 }, "end_location" : { "lat" : 40.807415, "lng" : -74.07250909999999 }, "html_instructions" : "Keep \u003cb\u003eleft\u003c/b\u003e, follow signs for \u003cb\u003eState Route 503 N\u003c/b\u003e/\u003cb\u003eNew Jersey 120 N\u003c/b\u003e/\u003cb\u003eWashington Avenue\u003c/b\u003e/\u003cb\u003eMoonachie\u003c/b\u003e/\u003cb\u003ePaterson Plank Road\u003c/b\u003e", "maneuver" : "keep-left", "polyline" : { "points" : "i~`xFzgbcMaFH" }, "start_location" : { "lat" : 40.8062905, "lng" : -74.07245929999999 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.5 mi", "value" : 869 }, "duration" : { "text" : "1 min", "value" : 38 }, "end_location" : { "lat" : 40.8145647, "lng" : -74.06878929999999 }, "html_instructions" : "Continue onto \u003cb\u003eNJ-120 N\u003c/b\u003e", "polyline" : { "points" : "keaxFdhbcMc@@ ...points truncated in this example" }, "start_location" : { "lat" : 40.807415, "lng" : -74.07250909999999 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.2 mi", "value" : 339 }, "duration" : { "text" : "1 min", "value" : 16 }, "end_location" : { "lat" : 40.8170874, "lng" : -74.0665298 }, "html_instructions" : "Continue straight onto \u003cb\u003eWashington Ave\u003c/b\u003e", "maneuver" : "straight", "polyline" : { "points" : "_rbxF|pacMm@ ...points truncated in this example" }, "start_location" : { "lat" : 40.8145647, "lng" : -74.06878929999999 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.2 mi", "value" : 358 }, "duration" : { "text" : "1 min", "value" : 38 }, "end_location" : { "lat" : 40.8143541, "lng" : -74.0648063 }, "html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e onto \u003cb\u003ePaterson Plank Rd\u003c/b\u003e", "maneuver" : "turn-right", "polyline" : { "points" : "yacxFxbacME ...points truncated in this example" }, "start_location" : { "lat" : 40.8170874, "lng" : -74.0665298 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "79 ft", "value" : 24 }, "duration" : { "text" : "1 min", "value" : 4 }, "end_location" : { "lat" : 40.8141899, "lng" : -74.06498189999999 }, "html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e toward \u003cb\u003eN Connection Rd\u003c/b\u003e", "maneuver" : "turn-right", "polyline" : { "points" : "upbxF`x`cMTVHH" }, "start_location" : { "lat" : 40.8143541, "lng" : -74.0648063 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.1 mi", "value" : 177 }, "duration" : { "text" : "1 min", "value" : 25 }, "end_location" : { "lat" : 40.8138003, "lng" : -74.06693709999999 }, "html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e onto \u003cb\u003eN Connection Rd\u003c/b\u003e", "maneuver" : "turn-right", "polyline" : { "points" : "uobxFby`cMFHFFFHPPDzATtDFfA" }, "start_location" : { "lat" : 40.8141899, "lng" : -74.06498189999999 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.3 mi", "value" : 548 }, "duration" : { "text" : "1 min", "value" : 73 }, "end_location" : { "lat" : 40.8149711, "lng" : -74.0728354 }, "html_instructions" : "Continue straight onto \u003cb\u003eRd D\u003c/b\u003e", "maneuver" : "straight", "polyline" : { "points" : "gmbxFjeacMDj ...points truncated in this example" }, "start_location" : { "lat" : 40.8138003, "lng" : -74.06693709999999 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "174 ft", "value" : 53 }, "duration" : { "text" : "1 min", "value" : 28 }, "end_location" : { "lat" : 40.814505, "lng" : -74.07272910000002 }, "html_instructions" : "Turn \u003cb\u003eleft\u003c/b\u003e onto \u003cb\u003eMetLife Stadium Dr\u003c/b\u003e\u003cdiv style=\"font-size:0.9em\"\u003eDestination will be on the right\u003c/div\u003e", "maneuver" : "turn-left", "polyline" : { "points" : "qtbxFfjbcMf@AHAFA^MBA" }, "start_location" : { "lat" : 40.8149711, "lng" : -74.0728354 }, "travel_mode" : "DRIVING" } ], "via_waypoint" : [] } ], "overview_polyline" : { "points" : "_rtwFpgubMtBuG ...points truncated in this example" }, "summary" : "NJ-495 W and NJ-3 W", "warnings" : [], "waypoint_order" : [] } ], "status" : "OK" }