This Choreo generates walking directions between two locations, denoted by address, or latitude/longitude coordinates. Go here for more information on this API method.
Here's an example of input set:
APIKEY: {YOUR API KEY}
Destination: 1600 Amphitheatre Parkway, Mountain View, CA
Origin: 1800 Amphitheatre Parkway, Mountain View, CA
Here's an example of the JSON returned by this Choreo:
{
"routes" : [
{
"bounds" : {
"northeast" : {
"lat" : 40.721580,
"lng" : -73.96044000000001
},
"southwest" : {
"lat" : 40.710770,
"lng" : -74.002250
}
},
"copyrights" : "Map data ©2012 Google",
"legs" : [
{
"distance" : {
"text" : "2.9 mi",
"value" : 4588
},
"duration" : {
"text" : "58 mins",
"value" : 3452
},
"end_address" : "120 Metropolitan Ave, Brooklyn, NY 11211, USA",
"end_location" : {
"lat" : 40.71630,
"lng" : -73.96256000000001
},
"start_address" : "12 Franklin St, New York, NY 10013, USA",
"start_location" : {
"lat" : 40.71681000000001,
"lng" : -74.002250
},
"steps" : [
{
"distance" : {
"text" : "56 ft",
"value" : 17
},
"duration" : {
"text" : "1 min",
"value" : 11
},
"end_location" : {
"lat" : 40.71673000000001,
"lng" : -74.00208000000001
},
"html_instructions" : "Head \u003cb\u003esoutheast\u003c/b\u003e on \u003cb\u003eFranklin St\u003c/b\u003e toward \u003cb\u003eLafayette St\u003c/b\u003e",
"polyline" : {
"points" : "aoowF`qtbMNa@"
},
"start_location" : {
"lat" : 40.71681000000001,
"lng" : -74.002250
},
"travel_mode" : "WALKING"
},
{
"distance" : {
"text" : "0.4 mi",
"value" : 648
},
"duration" : {
"text" : "8 mins",
"value" : 501
},
"end_location" : {
"lat" : 40.721580,
"lng" : -73.997810
},
"html_instructions" : "Turn \u003cb\u003eleft\u003c/b\u003e onto \u003cb\u003eLafayette St\u003c/b\u003e",
"polyline" : {
"points" : "qnowF~otbMqBeB}BsBeByAsCmCiDqCiEkDkBuA"
},
"start_location" : {
"lat" : 40.71673000000001,
"lng" : -74.00208000000001
},
"travel_mode" : "WALKING"
},
{
"distance" : {
"text" : "0.2 mi",
"value" : 340
},
"duration" : {
"text" : "5 mins",
"value" : 272
},
"end_location" : {
"lat" : 40.72040000000001,
"lng" : -73.99410
},
"html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e onto \u003cb\u003eKenmare St\u003c/b\u003e",
"polyline" : {
"points" : "{lpwFhusbMXmAx@iDt@cDt@}Cj@gC?c@"
},
"start_location" : {
"lat" : 40.721580,
"lng" : -73.997810
},
"travel_mode" : "WALKING"
},
{
"distance" : {
"text" : "0.4 mi",
"value" : 719
},
"duration" : {
"text" : "10 mins",
"value" : 570
},
"end_location" : {
"lat" : 40.717980,
"lng" : -73.986180
},
"html_instructions" : "Continue onto \u003cb\u003eDelancey St\u003c/b\u003e",
"polyline" : {
"points" : "oepwFb~rbMD[FWt@cEl@sCt@oDn@}CFUDU\\eBl@wCn@aDp@yCr@cDJ_@Nk@"
},
"start_location" : {
"lat" : 40.72040000000001,
"lng" : -73.99410
},
"travel_mode" : "WALKING"
},
{
"distance" : {
"text" : "138 ft",
"value" : 42
},
"duration" : {
"text" : "1 min",
"value" : 34
},
"end_location" : {
"lat" : 40.717810,
"lng" : -73.98575000000002
},
"html_instructions" : "Continue onto \u003cb\u003eWilliamsburg Bridge\u003c/b\u003e",
"polyline" : {
"points" : "kvowFrlqbMRu@FQDM"
},
"start_location" : {
"lat" : 40.717980,
"lng" : -73.986180
},
"travel_mode" : "WALKING"
},
{
"distance" : {
"text" : "30 ft",
"value" : 9
},
"duration" : {
"text" : "1 min",
"value" : 12
},
"end_location" : {
"lat" : 40.71774000000001,
"lng" : -73.98579000000001
},
"html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e at \u003cb\u003eClinton St\u003c/b\u003e",
"polyline" : {
"points" : "iuowF|iqbMLF"
},
"start_location" : {
"lat" : 40.717810,
"lng" : -73.98575000000002
},
"travel_mode" : "WALKING"
},
{
"distance" : {
"text" : "0.4 mi",
"value" : 657
},
"duration" : {
"text" : "8 mins",
"value" : 457
},
"end_location" : {
"lat" : 40.71551000000001,
"lng" : -73.978570
},
"html_instructions" : "Turn \u003cb\u003eleft\u003c/b\u003e onto \u003cb\u003eWilliamsburg Bridge\u003c/b\u003e",
"polyline" : {
"points" : "{towFdjqbMtAeGTiAt@qDj@sC?ABKNw@RaANm@r@gD?CRaAx@yDVkA\\cB"
},
"start_location" : {
"lat" : 40.71774000000001,
"lng" : -73.98579000000001
},
"travel_mode" : "WALKING"
},
{
"distance" : {
"text" : "0.9 mi",
"value" : 1370
},
"duration" : {
"text" : "17 mins",
"value" : 1029
},
"end_location" : {
"lat" : 40.710770,
"lng" : -73.96367000000001
},
"html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e to stay on \u003cb\u003eWilliamsburg Bridge\u003c/b\u003e",
"polyline" : {
"points" : "}fowF`}obMLAD?BCF[FWXuAPcABMj@uC@ABMBODU@CBKBM?CH_@Nu@Z{APy@?ELm@Lo@b@{B`A}EFYXsApB}JrB_KRgADM@EFGBE@A@AHM`AcE`@gBh@{B\\cBr@gDl@mC"
},
"start_location" : {
"lat" : 40.71551000000001,
"lng" : -73.978570
},
"travel_mode" : "WALKING"
},
{
"distance" : {
"text" : "0.4 mi",
"value" : 576
},
"duration" : {
"text" : "7 mins",
"value" : 412
},
"end_location" : {
"lat" : 40.715310,
"lng" : -73.96044000000001
},
"html_instructions" : "Turn \u003cb\u003eleft\u003c/b\u003e onto \u003cb\u003eBedford Ave\u003c/b\u003e",
"polyline" : {
"points" : "iinwF|_mbMMGIEA?UOKGGEEAOKeCsA_CqAsC}A}BoAwBmAkAqAuAwA"
},
"start_location" : {
"lat" : 40.710770,
"lng" : -73.96367000000001
},
"travel_mode" : "WALKING"
},
{
"distance" : {
"text" : "0.1 mi",
"value" : 210
},
"duration" : {
"text" : "3 mins",
"value" : 154
},
"end_location" : {
"lat" : 40.71630,
"lng" : -73.96256000000001
},
"html_instructions" : "Turn \u003cb\u003eleft\u003c/b\u003e onto \u003cb\u003eMetropolitan Ave\u003c/b\u003e\u003cdiv style=\"font-size:0.9em\"\u003eDestination will be on the left\u003c/div\u003e",
"polyline" : {
"points" : "ueowFvklbM{BfHiA~B"
},
"start_location" : {
"lat" : 40.715310,
"lng" : -73.96044000000001
},
"travel_mode" : "WALKING"
}
],
"via_waypoint" : []
}
],
"overview_polyline" : {
"points" : "aoowF`qtbMNa@qBeBcFmEsCmCiDqCuHaG~DyPj@gC?c@Ls@bBwIdBmIxAiH`B{H~@cEp@aCLFtAeGjA{F~@yEzEgURAJ_@v@_EdAiFbBsIfK{g@NUJObBkHhDuOo@]i@[wOsIwBmAkAqAuAwA{BfHiA~B"
},
"summary" : "Williamsburg Bridge",
"warnings" : [
"Walking directions are in beta. Use caution – This route may be missing sidewalks or pedestrian paths."
],
"waypoint_order" : []
}
],
"status" : "OK"
}