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" }