You have no favorites... yet!
Use the Library tree on the left to select a Choreo to call from your gateway device.
Use the Library tree on the left to select a Choreo to call from your edge device via the gateway.
Library . Google . Directions . GetDrivingDirections
Generates directions between two locations, denoted by address, or latitude/longitude coordinates.
/*
TembooTask class placeholder
*/
/*
TembooTask header placeholder
*/
Since you've changed your device configuration, you'll need to tell us about this new device.
This feature is in experimental mode - pricing coming soon.
Send your code straight to a GitHub repository.
Your code will be visible by others in your repos. Keep credentials private by saving a Profile or commit code with Placeholder inputs.
The following files will be added to this repo:
You'll be able to edit and share your code from TI's CCS Cloud IDE.
The following will be sent to CCS Cloud:
/*
Your auto-generated code will appear here once you've configured your device above.
*/
/*
A header file containing your Temboo account information will appear here once you've
configured your device above.
*/
/*
Please log in to generate proxy server code for use with the JavaScript SDK.
*/
This Choreo generates driving 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.721450, "lng" : -73.96044000000001 }, "southwest" : { "lat" : 40.709510, "lng" : -74.00303000000001 } }, "copyrights" : "Map data ©2012 Google", "legs" : [ { "distance" : { "text" : "3.4 mi", "value" : 5520 }, "duration" : { "text" : "12 mins", "value" : 710 }, "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" : 1 }, "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" : "DRIVING" }, { "distance" : { "text" : "492 ft", "value" : 150 }, "duration" : { "text" : "1 min", "value" : 40 }, "end_location" : { "lat" : 40.71559000000001, "lng" : -74.00303000000001 }, "html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e onto \u003cb\u003eLafayette St\u003c/b\u003e", "polyline" : { "points" : "qnowF~otbMpB~Av@l@x@n@" }, "start_location" : { "lat" : 40.71673000000001, "lng" : -74.00208000000001 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "295 ft", "value" : 90 }, "duration" : { "text" : "1 min", "value" : 40 }, "end_location" : { "lat" : 40.715160, "lng" : -74.00213000000001 }, "html_instructions" : "Turn \u003cb\u003eleft\u003c/b\u003e onto \u003cb\u003eAvenue of the Strongest/Worth St\u003c/b\u003e", "polyline" : { "points" : "mgowF|utbMtAsD" }, "start_location" : { "lat" : 40.71559000000001, "lng" : -74.00303000000001 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.5 mi", "value" : 731 }, "duration" : { "text" : "2 mins", "value" : 106 }, "end_location" : { "lat" : 40.72080, "lng" : -73.99766000000001 }, "html_instructions" : "Take the 1st \u003cb\u003eleft\u003c/b\u003e onto \u003cb\u003eCentre St\u003c/b\u003e", "polyline" : { "points" : "wdowFhptbMoBqAqFsDiCmBkA}@gCmBk@c@iDiCqEoD" }, "start_location" : { "lat" : 40.715160, "lng" : -74.00213000000001 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "246 ft", "value" : 75 }, "duration" : { "text" : "1 min", "value" : 29 }, "end_location" : { "lat" : 40.721450, "lng" : -73.99742000000001 }, "html_instructions" : "Continue onto \u003cb\u003eCleveland Pl\u003c/b\u003e", "polyline" : { "points" : "_hpwFjtsbMaCo@" }, "start_location" : { "lat" : 40.72080, "lng" : -73.99766000000001 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.2 mi", "value" : 306 }, "duration" : { "text" : "1 min", "value" : 43 }, "end_location" : { "lat" : 40.72029000000001, "lng" : -73.994150 }, "html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e onto \u003cb\u003eKenmare St\u003c/b\u003e", "polyline" : { "points" : "alpwFzrsbMx@iDt@cDt@}Cj@gCTY" }, "start_location" : { "lat" : 40.721450, "lng" : -73.99742000000001 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.4 mi", "value" : 699 }, "duration" : { "text" : "3 mins", "value" : 167 }, "end_location" : { "lat" : 40.717890, "lng" : -73.986490 }, "html_instructions" : "Continue onto \u003cb\u003eDelancey St\u003c/b\u003e", "polyline" : { "points" : "ydpwFl~rbMH[dAsEl@sCr@qDn@}CDUFUZeBn@uCp@aDl@_Dx@_DH]" }, "start_location" : { "lat" : 40.72029000000001, "lng" : -73.994150 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "72 ft", "value" : 22 }, "duration" : { "text" : "1 min", "value" : 3 }, "end_location" : { "lat" : 40.71776000000001, "lng" : -73.986310 }, "html_instructions" : "Slight \u003cb\u003eright\u003c/b\u003e to stay on \u003cb\u003eDelancey St\u003c/b\u003e", "polyline" : { "points" : "yuowFpnqbMNKBEDQ" }, "start_location" : { "lat" : 40.717890, "lng" : -73.986490 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "1.4 mi", "value" : 2277 }, "duration" : { "text" : "2 mins", "value" : 104 }, "end_location" : { "lat" : 40.710110, "lng" : -73.96125000000001 }, "html_instructions" : "Slight \u003cb\u003eleft\u003c/b\u003e onto \u003cb\u003eWilliamsburg Bridge\u003c/b\u003e", "polyline" : { "points" : "_uowFlmqbM^cAFS\\yA|@iELk@?Ar@iD@En@}C?Ap@eD?Ar@gD?AbBkIr@gDl@yCBKRyAR}@?CBMBODS@EFY?CVqALo@No@\\cB`A}EtAaHDUjBkJlAcGbAaF@E@CRiAnAuFhAaFFUtA_Hh@mCt@oDp@}C" }, "start_location" : { "lat" : 40.71776000000001, "lng" : -73.986310 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "279 ft", "value" : 85 }, "duration" : { "text" : "1 min", "value" : 15 }, "end_location" : { "lat" : 40.709510, "lng" : -73.961190 }, "html_instructions" : "Take the \u003cb\u003eBway W\u003c/b\u003e exit toward \u003cb\u003eI-278 W/Staten Is\u003c/b\u003e", "polyline" : { "points" : "eenwFxplbMT_@XUBCPAL@LHFLLT" }, "start_location" : { "lat" : 40.710110, "lng" : -73.96125000000001 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.2 mi", "value" : 248 }, "duration" : { "text" : "1 min", "value" : 21 }, "end_location" : { "lat" : 40.710490, "lng" : -73.963840 }, "html_instructions" : "Sharp \u003cb\u003eright\u003c/b\u003e onto \u003cb\u003eBroadway\u003c/b\u003e", "polyline" : { "points" : "manwFlplbMKt@eAdDw@fDy@lC" }, "start_location" : { "lat" : 40.709510, "lng" : -73.961190 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.4 mi", "value" : 610 }, "duration" : { "text" : "2 mins", "value" : 94 }, "end_location" : { "lat" : 40.715310, "lng" : -73.96044000000001 }, "html_instructions" : "Turn \u003cb\u003eright\u003c/b\u003e onto \u003cb\u003eBedford Ave\u003c/b\u003e", "polyline" : { "points" : "qgnwF~`mbMw@a@MGIEA?UOKGGEEAOKeCsA_CqAsC}A}BoAwBmAkAqAuAwA" }, "start_location" : { "lat" : 40.710490, "lng" : -73.963840 }, "travel_mode" : "DRIVING" }, { "distance" : { "text" : "0.1 mi", "value" : 210 }, "duration" : { "text" : "1 min", "value" : 47 }, "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" : "DRIVING" } ], "via_waypoint" : [] } ], "overview_polyline" : { "points" : "aoowF`qtbMNa@pB~ApB|AtAsDoBqAqFsDiCmBsEkDuEmDqEoDaCo@nBmI`BeHTYH[rBgJbBoILk@jA{F~AaIbA}DRQd@uAd@mBjAuFdBoIdBqIdEoSVeBRaANw@l@_DdEsSbGgZBIbB_IpAwF~BmLfBmIT_@XUTEL@LHTb@Kt@eAdDw@fDy@lCeAi@m@]cDgBiOmIaDiD{BfHiA~B" }, "summary" : "Williamsburg Bridge", "warnings" : [], "waypoint_order" : [] } ], "status" : "OK" }
https://ACCOUNT_NAME.temboolive.com/callback/google
© 2025 Temboo, Inc Privacy Terms