{"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"}]}]}]},"_note":"Response truncated for documentation purposes"}
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'
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 simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
(Save 2 months with annual billing 🎉)
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.
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.
The Retrieve Travel Route endpoint returns real-time navigation data, including the best routes, distance, estimated travel time, and turn-by-turn instructions. It also provides traffic conditions and highlights for route optimization.
Key fields in the response data include `status`, `request_id`, `best_routes`, which contains `route_name`, `distance_meters`, `duration_seconds`, and `highlights`, providing essential information for navigation.
The response data is structured in a JSON format, with a top-level object containing `status`, `request_id`, and a `data` object that includes an array of `best_routes`, each with detailed route information.
The endpoint accepts `origin` and `destination` parameters to specify the starting and ending points of the route. Additional parameters may include options for traffic avoidance or route preferences.
Users can customize their requests by specifying different `origin` and `destination` values, as well as adjusting parameters for route preferences, such as prioritizing the fastest or shortest path.
The Smart Travel Routes API sources its data from various traffic and mapping services, ensuring comprehensive coverage and real-time updates for accurate navigation and route planning.
Typical use cases include enhancing travel apps with real-time navigation, optimizing delivery routes for logistics companies, and providing turn-by-turn directions for personal navigation tools.
Users can utilize the returned data by extracting key fields such as `distance`, `duration`, and `highlights` to inform users about the best routes, expected travel times, and any traffic conditions that may affect their journey.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
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.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund