This Choreo generates biking 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.71774000000001,
"lng": -73.96049000000001
},
"southwest": {
"lat": 40.71040000000001,
"lng": -74.00303000000001
}
},
"copyrights": "Map data ©2012 Google",
"legs": [
{
"distance": {
"text": "3.5 mi",
"value": 5592
},
"duration": {
"text": "21 mins",
"value": 1267
},
"end_address": "120 Metropolitan Ave, Brooklyn, NY 11211, USA",
"end_location": {
"lat": 40.7163,
"lng": -73.96256000000001
},
"start_address": "12 Franklin St, New York, NY 10013, USA",
"start_location": {
"lat": 40.71681000000001,
"lng": -74.00225
},
"steps": [
{
"distance": {
"text": "56 ft",
"value": 17
},
"duration": {
"text": "1 min",
"value": 2
},
"end_location": {
"lat": 40.71673000000001,
"lng": -74.00208
},
"html_instructions": "Head <b>southeast</b> on <b>Franklin St</b> toward <b>Lafayette St</b>",
"polyline": {
"points": "aoowF`qtbMNa@"
},
"start_location": {
"lat": 40.71681000000001,
"lng": -74.00225
},
"travel_mode": "BICYCLING"
},
{
"distance": {
"text": "223 ft",
"value": 68
},
"duration": {
"text": "1 min",
"value": 40
},
"end_location": {
"lat": 40.7163,
"lng": -73.96256000000001
},
"html_instructions": "Turn <b>left</b> onto <b>Metropolitan Ave</b><div style=\"font-size:0.9em\">Destination will be on the left</div>",
"polyline": {
"points": "qiowF~tlbMiA~B"
},
"start_location": {
"lat": 40.71593,
"lng": -73.96192
},
"travel_mode": "BICYCLING"
}
],
"via_waypoint": []
}
],
"overview_polyline": {
"points": "aoowF`qtbMNa@pB~ApB|AtF}NtAyDtAqDTYd@u@rAvATVJJzCc@o@}Iy@mSCi@MwDu@gUc@yKwGh@w@BsAGsAY}@]s@_@mDaB_C{@_@MOGtAeGjA{Fj@uCv@sD`CgLt@oD?UNq@zA{HBOPw@tE}TnCcNnCgN@KNu@F]?U?UDi@j@aDdDcPrCkNAKKOiBeAeAxDkBrHqBjHqGkD_G_D{AgBgAgAiA~B"
},
"summary": "Williamsburg Bridge",
"warnings": [
"Bicycling directions are in beta. Use caution – This route may contain streets that aren't suited for bicycling."
],
"waypoint_order": []
}
],
"status": "OK"
}