Smart Travel Routes API

Access real-time driving routes with traffic-aware adjustments and turn-by-turn guidance for smarter and efficient travel solutions.

About the API:  

The Smart Travel Routes API is designed to deliver accurate, real-time navigation data to optimize travel experiences. It provides users with driving routes, distance, estimated arrival times, and traffic-aware adjustments to ensure timely journeys. Ideal for travel apps, logistics companies, and navigation tools, this API empowers users with route customization options, including traffic avoidance and the ability to prioritize fastest or shortest paths. Designed for reliability and scalability, the Smart Travel Routes API ensures seamless integration into applications, offering robust solutions for efficient travel planning. Whether managing a delivery fleet or improving a user’s daily commute, this API ensures accurate and up-to-date navigation insights.

 

API Documentation

Endpoints


Send a GET request with origin and destination parameters. Receive real-time directions, including distance, travel time, and turn-by-turn instructions to optimize navigation and logistics.

 


                                                                            
GET https://zylalabs.com/api/5764/smart+travel+routes+api/7494/retrieve+travel+route
                                                                            
                                                                        

Retrieve Travel Route - Endpoint Features

Object Description
origin [Required] Directions origin / starting point - specified as free-text location query or latitude, longitude pair.
destination [Required] Directions destination - specified as free-text location query or latitude, longitude pair.
departure_time [Optional] Departure time - specified as a Unix-Timestamp in origin local time.
arrival_time [Optional] Arrival time - specified as a Unix-Timestamp in destination local time.
distance_units [Optional] Set the distance units in the response to Kilometers or Miles. The default auto value will use the common distance units used in origin/destination (e.g. Miles in the US, Kilometers in Germany).
avoid_routes [Optional] Route types to avoid - specified as a comma delimited list of the following values: tolls, highways, ferries.
country [Optional] The country/region to use for the query, specified as a 2-letter country code - see ISO 3166-1 alpha-2.
language [Optional] The language to use for the query, specified as a 2-letter language code - see ISO 639-1 alpha-2.
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"status":"OK","request_id":"17538a0e-b162-4fe9-b58b-19228d561bd0","data":{"best_routes":[{"route_name":"I-280 S","distance_meters":73564,"distance_label":"45.7 miles","duration_seconds":2873,"duration_label":"48 min","min_duration_seconds":2527,"max_duration_seconds":3556,"highlights":["Fastest route now due to traffic conditions"],"distance_timing_meters_seconds":{"0":0,"9":1,"187":32,"276":46,"328":61,"365":71,"448":80,"556":104,"608":114,"628":117,"636":119,"697":124,"715":125,"786":130,"829":133,"899":137,"929":139,"980":141,"1021":143,"1151":150,"1309":157,"1430":162,"1498":165,"1547":167,"1796":178,"1922":184,"1954":185,"1992":187,"2114":192,"2233":198,"2277":200,"2353":203,"2435":207,"2547":210,"2579":212,"2649":214,"2740":218,"2789":219,"2907":223,"3057":229,"3180":233,"3261":235,"3393":240,"3535":244,"3584":246,"3668":249,"3767":252,"3854":255,"3896":256,"3931":258,"3951":258,"4250":269,"4318":271,"4399":274,"4428":275,"4489":277,"4749":287,"4912":293,"5087":300,"5246":306,"5293":309,"5328":310,"5431":315,"5505":318,"5558":320,"5653":324,"5685":325,"5824":330,"6024":336,"6114":340,"6144":341,"6224":343,"6356":347,"6410":349,"6447":350,"6581":354,"6638":356,"6689":358,"6782":361,"6914":366,"6932":366,"7019":369,"7047":370,"7138":373,"7256":377,"7393":382,"7519":386,"7710":393,"7888":399,"8015":403,"8099":406,"8213":409,"8260":411,"8332":413,"8473":418,"8584":421,"8652":424,"8863":430,"9020":436,"9554":454,"9653":458,"9757":461,"9972":469,"10020":470,"10191":477,"10320":481,"10427":485,"10502":488,"10635":492,"10699":495,"10754":496,"10809":498,"10860":500,"10938":503,"10979":504,"11090":508,"11295":515,"11436":520,"11539":524,"11621":527,"11650":528,"11762":532,"11859":535,"11945":539,"11985":540,"12111":544,"12200":547,"12295":550,"12787":566,"13011":573,"13070":575,"13183":578,"13375":584,"13422":586,"13495":588,"13605":592,"13693":594,"13772":597,"13805":598,"13884":600,"13974":603,"14067":606,"14111":607,"14222":611,"14345":615,"14365":615,"14428":617,"14454":618,"14487":619,"14511":620,"14538":621,"14587":623,"14638":624,"14702":627,"14797":630,"14914":634,"14994":637,"15015":638,"15036":638,"15087":640,"15098":640,"15184":643,"15234":644,"15344":648,"15381":649,"15430":651,"15489":652,"15539":654,"15599":656,"15654":658,"15693":659,"15732":660,"15812":663,"15833":664,"15947":667,"16024":670,"16138":674,"16298":679,"16328":680,"16455":684,"16649":690,"16804":694,"16999":700,"17120":703,"17181":705,"17240":707,"17344":710,"17664":720,"17779":724,"17926":728,"17947":729,"18013":731,"18098":734,"18178":737,"18252":739,"18386":743,"18789":757,"19010":764,"19355":775,"19671":786,"19936":794,"20032":797,"20085":799,"20223":804,"20385":809,"20483":812,"20531":813,"20964":827,"21209":834,"21397":840,"22130":864,"22356":871,"22549":877,"22639":880,"22678":881,"22763":883,"22878":887,"22996":890,"23090":893,"23159":895,"23229":897,"23306":900,"23335":901,"23359":901,"23384":902,"23418":903,"23806":915,"24085":923,"24261":929,"24379":932,"24535":937,"24580":939,"24770":945,"24898":949,"24982":951,"25027":953,"25148":957,"25316":962,"25360":964,"25491":968,"25639":972,"25957":982,"26085":986,"26178":989,"26208":990,"26346":995,"26489":999,"26559":1001,"26602":1003,"26640":1004,"26806":1009,"26995":1015,"27097":1018,"27177":1020,"27256":1023,"27335":1025,"27397":1027,"27779":1038,"27824":1039,"27897":1042,"27974":1044,"28277":1053,"28373":1056,"28556":1062,"28674":1065,"29237":1082,"29551":1091,"29711":1096,"30116":1109,"30207":1111,"30321":1115,"30374":1116,"30483":1120,"30732":1128,"30835":1131,"31022":1137,"31221":1143,"31293":1145,"31689":1157,"31804":1161,"31879":1163,"32003":1167,"32330":1176,"32465":1180,"32583":1184,"32724":1188,"32789":1190,"33034":1198,"33137":1201,"33219":1203,"33249":1204,"33317":1206,"33351":1207,"33421":1210,"33488":1212,"33631":1216,"33751":1220,"33836":1223,"33874":1224,"34135":1232,"34448":1242,"34657":1249,"34785":1253,"35051":1262,"35211":1267,"35371":1272,"35416":1274,"35494":1276,"35650":1281,"35695":1283,"35815":1286,"35885":1288,"36094":1295,"36157":1297,"36274":1301,"36382":1304,"36424":1305,"36501":1308,"36690":1314,"36756":1316,"36883":1320,"36928":1321,"36959":1322,"37021":1324,"37075":1326,"37120":1327,"37279":1332,"37344":1334,"37714":1346,"37771":1347,"37987":1354,"38322":1365,"38692":1376,"39008":1386,"39328":1396,"39786":1410,"39830":1411,"39854":1412,"40050":1418,"40073":1419,"40112":1420,"40130":1421,"40149":1421,"40587":1435,"40647":1437,"40695":1438,"40786":1441,"40850":1443,"40882":1444,"40918":1445,"41000":1448,"41038":1449,"41476":1462,"41772":1472,"41946":1477,"42079":1481,"42259":1487,"42429":1492,"42566":1496,"42665":1499,"43052":1511,"43178":1514,"43226":1516,"43339":1519,"43417":1522,"43512":1525,"43588":1528,"43727":1533,"43826":1536,"43917":1539,"44019":1542,"44108":1544,"44241":1548,"44314":1551,"44361":1552,"44611":1560,"45490":1587,"45630":1591,"45695":1593,"46064":1604,"46250":1610,"46313":1612,"46373":1614,"46419":1615,"46531":1619,"46610":1621,"47266":1642,"47313":1643,"47427":1647,"47572":1651,"47733":1656,"47813":1659,"47857":1660,"47991":1664,"48133":1669,"48221":1672,"48391":1677,"48591":1683,"48716":1687,"49213":1703,"49264":1705,"49364":1708,"49413":1710,"49439":1710,"49867":1724,"49922":1726,"50000":1728,"50035":1729,"50231":1735,"50354":1739,"50513":1743,"50779":1751,"50839":1753,"50919":1755,"50957":1757,"51044":1759,"51105":1761,"51252":1766,"51315":1767,"51342":1768,"51390":1770,"51446":1772,"51482":1773,"51529":1774,"51619":1777,"51647":1778,"51731":1780,"51865":1785,"52062":1791,"52129":1793,"52155":1794,"52220":1796,"52278":1797,"52376":1800,"52392":1801,"52442":1802,"52489":1804,"52516":1805,"52552":1806,"52661":1809,"52696":1810,"52987":1819,"53059":1821,"53102":1823,"53241":1827,"53329":1830,"53394":1832,"53480":1834,"53545":1836,"53597":1838,"53823":1845,"54058":1852,"54162":1855,"54224":1857,"54259":1858,"54324":1860,"54368":1862,"54478":1865,"54515":1866,"54550":1867,"54590":1869,"54800":1875,"54843":1876,"54878":1877,"54946":1880,"55032":1882,"55070":1883,"55118":1885,"55276":1890,"55368":1893,"55469":1896,"55513":1898,"55573":1900,"55616":1901,"55702":1904,"55751":1905,"55829":1908,"55905":1910,"55928":1911,"56035":1914,"56096":1916,"56141":1918,"56352":1924,"56470":1928,"56534":1930,"56597":1932,"56625":1933,"56784":1938,"56888":1942,"56936":1943,"56996":1945,"57154":1950,"57286":1954,"57476":1960,"57578":1964,"57622":1965,"57690":1967,"57740":1969,"57786":1970,"57914":1974,"58213":1984,"58346":1988,"58406":1991,"58670":1999,"58737":2001,"58785":2003,"58990":2009,"59320":2019,"59470":2023,"59724":2031,"59787":2033,"59826":2034,"59954":2038,"59985":2039,"60013":2040,"60039":2041,"60145":2044,"60203":2046,"60301":2049,"60427":2054,"60466":2055,"60487":2056,"60528":2057,"60594":2059,"60684":2062,"60759":2065,"60809":2066,"60874":2068,"60944":2071,"60971":2072,"61021":2073,"61090":2075,"61147":2077,"61265":2081,"61435":2086,"61553":2090,"61602":2091,"61698":2094,"61851":2099,"61894":2101,"61944":2102,"62065":2106,"62233":2111,"62287":2113,"62363":2116,"62545":2122,"62625":2124,"62714":2127,"62846":2131,"63096":2139,"63402":2149,"63456":2151,"63563":2154,"63618":2156,"63658":2157,"63711":2159,"63746":2160,"63790":2162,"63844":2163,"63978":2168,"64004":2168,"64080":2171,"64143":2173,"64204":2175,"64461":2183,"64566":2187,"64609":2188,"64726":2192,"64845":2196,"65402":2213,"65762":2225,"66104":2236,"66349":2244,"66428":2246,"66519":2249,"66612":2252,"66675":2254,"66838":2260,"66954":2264,"67020":2266,"67197":2272,"67272":2274,"67503":2282,"67760":2290,"67834":2292,"67912":2295,"68023":2298,"68098":2301,"68159":2303,"68286":2307,"68389":2310,"68484":2313,"68616":2318,"68668":2319,"68770":2322,"68872":2326,"68955":2328,"69067":2332,"69175":2338,"69266":2345,"69329":2355,"69392":2366,"69417":2373,"69438":2377,"69569":2403,"69658":2413,"69677":2414,"69694":2416,"69737":2422,"69840":2441,"69856":2443,"69916":2451,"69982":2459,"69987":2459,"69992":2460,"70340":2486,"70418":2499,"70453":2505,"70749":2526,"70777":2528,"70859":2534,"71123":2549,"71312":2561,"71342":2564,"71392":2571,"71412":2575,"71460":2583,"71477":2586,"71531":2592,"71543":2594,"71581":2598,"71602":2599,"71620":2601,"71634":2602,"71657":2603,"71684":2605,"71705":2606,"71728":2608,"71742":2609,"71781":2611,"71816":2613,"71944":2620,"72031":2625,"72124":2632,"72142":2633,"72168":2635,"72177":2637,"72236":2642,"72308":2649,"72325":2650,"72367":2654,"72534":2664,"72724":2674,"72770":2678,"72839":2684,"72973":2694,"73154":2704,"73322":2714,"73397":2719,"73530":2736,"73564":2743},"notes":[],"departure_timestamp":1733941164,"departure_datetime_utc":"2024-12-11T18:19:24.000Z","arrival_timestamp":1733944037,"arrival_datetime_utc":"2024-12-11T19:07:17.000Z","route_parts":[{"summary":"Get on I-280 S from San Jose Avenue","distance_meters":2433,"distance_label":"1.5 mi","duration_seconds":225,"duration_label":"4 min","instructions":[{"summary":"Head east on 29th St toward Dolores St","distance_meters":188,"distance_label":"0.1 mi","duration_seconds":34,"duration_label":"34 sec","notes":[],"photo_url":"https://streetviewpixels-pa.googleapis.com/v1/thumbnail?panoid=vJ-VkqrqDkt6vroNpN_3oA&cb_client=maps_sv.tactile.gps&w=1024&h=768&yaw=73.96842&pitch=0&thumbfov=100"},{"summary":"Turn right at the 1st cross street onto Dolores St","distance_meters":368,"distance_label":"0.2 mi","duration_seconds":77,"duration_label":"1 min","notes":[],"photo_url":"https://streetviewpixels-pa.googleapis.com/v1/thumbnail?panoid=wiT_N6AtRwU1YngnpAdmoQ&cb_client=maps_sv.tactile.gps&w=1024&h=768&yaw=275.4786&pitch=0&thumbfov=100"},{"summary":"Turn right onto San Jose Avenue","distance_meters":1239,"distance_label":"0.8 mi","duration_seconds":84,"duration_label":"1 min","notes":[],"photo_url":"https://streetviewpixels-pa.googleapis.com/v1/thumbnail?panoid=t3UKyZ9G4JOh12EH8Eap2w&cb_client=maps_sv.tactile.gps&w=1024&h=768&yaw=188.09184&pitch=0&thumbfov=100"},{"summary":"Use any lane to merge onto I-280 S v...
                                                                                                                                                                                                                    
                                                                                                    

Retrieve Travel Route - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/5764/smart+travel+routes+api/7494/retrieve+travel+route?origin=Church St & 29th St, San-Francisco, CA, USA&destination=Sunnyvale, CA, USA' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Smart Travel Routes API REST API, simply include your bearer token in the Authorization header.
Headers
Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

πŸš€ Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Specialized Customer Support
  • Real-Time API Monitoring

Customer favorite features

  • βœ”οΈŽ Only Pay for Successful Requests
  • βœ”οΈŽ Free 7-Day Trial
  • βœ”οΈŽ Multi-Language Support
  • βœ”οΈŽ One API Key, All APIs.
  • βœ”οΈŽ Intuitive Dashboard
  • βœ”οΈŽ Comprehensive Error Handling
  • βœ”οΈŽ Developer-Friendly Docs
  • βœ”οΈŽ Postman Integration
  • βœ”οΈŽ Secure HTTPS Connections
  • βœ”οΈŽ Reliable Uptime

The Smart Travel Routes API provides real-time driving routes, distance calculations, estimated arrival times, and traffic-aware adjustments. It also allows for route customization options such as traffic avoidance and prioritizing the fastest or shortest paths.

The Smart Travel Routes API is designed for seamless integration into applications. You can use standard API calls to access its features, and the documentation provides guidance on authentication, request formats, and response handling.

Yes, the Smart Travel Routes API is ideal for logistics companies as it offers accurate navigation data, real-time traffic updates, and route optimization, which can enhance delivery efficiency and fleet management.

Absolutely! The Smart Travel Routes API includes traffic-aware adjustments that help users avoid congested areas, ensuring timely journeys and more efficient travel planning.

Applications such as travel apps, navigation tools, and logistics management systems can greatly benefit from the Smart Travel Routes API, as it enhances user experience with accurate and up-to-date navigation insights.

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.

The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.

Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]

Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.

API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.

To check how many API calls you have left for the current month, look at the β€˜X-Zyla-API-Calls-Monthly-Remaining’ header. For example, if your plan allows 1000 requests per month and you've used 100, this header will show 900.

To see the maximum number of API requests your plan allows, check the β€˜X-Zyla-RateLimit-Limit’ header. For instance, if your plan includes 1000 requests per month, this header will display 1000.

The β€˜X-Zyla-RateLimit-Reset’ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3600, it means 3600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]


Related APIs