The Efficient Directions API provides comprehensive navigation capabilities, enabling users to access accurate driving directions with real-time updates. It calculates optimal routes based on traffic, distance, and travel time while offering detailed turn-by-turn instructions. Businesses can utilize this API for logistics, delivery management, and personal travel planning, ensuring reliable and efficient navigation solutions. With features such as traffic avoidance and route customization, the API is perfect for enhancing user experiences and improving operational efficiency. Its developer-friendly design and scalability make it a top choice for integrating navigation into modern applications, helping users save time and arrive at destinations hassle-free.
Fetch Optimized 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. |
{"status":"OK","request_id":"38e6105d-aeec-421c-9934-4247a5d0c6b5","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":3557,"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":142,"1021":144,"1151":150,"1309":157,"1430":163,"1498":166,"1547":168,"1796":179,"1922":184,"1954":186,"1992":188,"2114":193,"2233":199,"2277":200,"2353":204,"2435":207,"2547":211,"2579":212,"2649":215,"2740":218,"2789":220,"2907":224,"3057":229,"3180":233,"3261":236,"3393":241,"3535":245,"3584":247,"3668":250,"3767":253,"3854":256,"3896":257,"3931":258,"3951":259,"4250":270,"4318":272,"4399":275,"4428":276,"4489":278,"4749":288,"4912":294,"5087":301,"5246":307,"5293":310,"5328":311,"5431":316,"5505":319,"5558":321,"5653":325,"5685":326,"5824":331,"6024":337,"6114":341,"6144":342,"6224":344,"6356":348,"6410":350,"6447":351,"6581":355,"6638":357,"6689":359,"6782":362,"6914":367,"6932":367,"7019":370,"7047":371,"7138":374,"7256":378,"7393":383,"7519":387,"7710":394,"7888":400,"8015":404,"8099":407,"8213":410,"8260":412,"8332":414,"8473":419,"8584":422,"8652":425,"8863":431,"9020":437,"9554":455,"9653":459,"9757":462,"9972":470,"10020":471,"10191":478,"10320":482,"10427":486,"10502":489,"10635":493,"10699":496,"10754":498,"10809":499,"10860":501,"10938":504,"10979":505,"11090":509,"11295":517,"11436":522,"11539":525,"11621":528,"11650":529,"11762":533,"11859":537,"11945":540,"11985":541,"12111":545,"12200":548,"12295":551,"12787":567,"13011":574,"13070":576,"13183":579,"13375":585,"13422":587,"13495":589,"13605":593,"13693":595,"13772":598,"13805":599,"13884":601,"13974":604,"14067":607,"14111":608,"14222":612,"14345":616,"14365":616,"14428":618,"14454":619,"14487":620,"14511":621,"14538":622,"14587":624,"14638":626,"14702":628,"14797":631,"14914":635,"14994":638,"15015":639,"15036":639,"15087":641,"15098":641,"15184":644,"15234":646,"15344":649,"15381":650,"15430":652,"15489":654,"15539":655,"15599":657,"15654":659,"15693":660,"15732":661,"15812":664,"15833":665,"15947":669,"16024":671,"16138":675,"16298":680,"16328":681,"16455":685,"16649":691,"16804":695,"16999":701,"17120":705,"17181":706,"17240":708,"17344":712,"17664":721,"17779":725,"17926":730,"17947":730,"18013":732,"18098":735,"18178":738,"18252":740,"18386":745,"18789":758,"19010":765,"19355":777,"19671":787,"19936":795,"20032":799,"20085":800,"20223":805,"20385":810,"20483":813,"20531":815,"20964":828,"21209":836,"21397":842,"22130":865,"22356":872,"22549":878,"22639":881,"22678":882,"22763":885,"22878":888,"22996":892,"23090":895,"23159":897,"23229":899,"23306":901,"23335":902,"23359":903,"23384":903,"23418":904,"23806":916,"24085":924,"24261":930,"24379":933,"24535":938,"24580":940,"24770":946,"24898":950,"24982":953,"25027":954,"25148":958,"25316":964,"25360":965,"25491":969,"25639":974,"25957":984,"26085":988,"26178":991,"26208":992,"26346":996,"26489":1000,"26559":1003,"26602":1004,"26640":1005,"26806":1010,"26995":1016,"27097":1019,"27177":1022,"27256":1024,"27335":1026,"27397":1028,"27779":1040,"27824":1041,"27897":1043,"27974":1045,"28277":1054,"28373":1057,"28556":1063,"28674":1066,"29237":1083,"29551":1093,"29711":1098,"30116":1110,"30207":1113,"30321":1116,"30374":1118,"30483":1121,"30732":1129,"30835":1132,"31022":1138,"31221":1144,"31293":1146,"31689":1158,"31804":1162,"31879":1164,"32003":1168,"32330":1178,"32465":1182,"32583":1185,"32724":1190,"32789":1192,"33034":1199,"33137":1202,"33219":1205,"33249":1206,"33317":1208,"33351":1209,"33421":1211,"33488":1213,"33631":1218,"33751":1221,"33836":1224,"33874":1225,"34135":1234,"34448":1243,"34657":1250,"34785":1254,"35051":1263,"35211":1269,"35371":1274,"35416":1275,"35494":1278,"35650":1283,"35695":1284,"35815":1288,"35885":1290,"36094":1296,"36157":1298,"36274":1302,"36382":1305,"36424":1307,"36501":1309,"36690":1315,"36756":1317,"36883":1321,"36928":1323,"36959":1324,"37021":1326,"37075":1327,"37120":1329,"37279":1334,"37344":1336,"37714":1347,"37771":1349,"37987":1356,"38322":1366,"38692":1378,"39008":1387,"39328":1397,"39786":1411,"39830":1413,"39854":1413,"40050":1420,"40073":1420,"40112":1421,"40130":1422,"40149":1423,"40587":1436,"40647":1438,"40695":1440,"40786":1442,"40850":1444,"40882":1445,"40918":1447,"41000":1449,"41038":1450,"41476":1464,"41772":1473,"41946":1479,"42079":1483,"42259":1488,"42429":1493,"42566":1497,"42665":1500,"43052":1512,"43178":1516,"43226":1517,"43339":1521,"43417":1523,"43512":1527,"43588":1530,"43727":1534,"43826":1537,"43917":1540,"44019":1543,"44108":1546,"44241":1550,"44314":1552,"44361":1554,"44611":1561,"45490":1588,"45630":1592,"45695":1594,"46064":1606,"46250":1611,"46313":1613,"46373":1615,"46419":1617,"46531":1620,"46610":1623,"47266":1644,"47313":1645,"47427":1648,"47572":1653,"47733":1658,"47813":1660,"47857":1662,"47991":1666,"48133":1670,"48221":1673,"48391":1679,"48591":1685,"48716":1689,"49213":1705,"49264":1706,"49364":1710,"49413":1711,"49439":1712,"49867":1725,"49922":1727,"50000":1730,"50035":1731,"50231":1736,"50354":1740,"50513":1745,"50779":1753,"50839":1755,"50919":1757,"50957":1758,"51044":1761,"51105":1763,"51252":1767,"51315":1769,"51342":1770,"51390":1771,"51446":1773,"51482":1774,"51529":1776,"51619":1778,"51647":1779,"51731":1782,"51865":1786,"52062":1792,"52129":1794,"52155":1795,"52220":1797,"52278":1799,"52376":1802,"52392":1802,"52442":1804,"52489":1805,"52516":1806,"52552":1807,"52661":1811,"52696":1812,"52987":1821,"53059":1823,"53102":1824,"53241":1829,"53329":1831,"53394":1833,"53480":1836,"53545":1838,"53597":1840,"53823":1847,"54058":1854,"54162":1857,"54224":1859,"54259":1860,"54324":1862,"54368":1863,"54478":1867,"54515":1868,"54550":1869,"54590":1870,"54800":1877,"54843":1878,"54878":1879,"54946":1881,"55032":1884,"55070":1885,"55118":1886,"55276":1891,"55368":1894,"55469":1898,"55513":1899,"55573":1901,"55616":1902,"55702":1905,"55751":1907,"55829":1909,"55905":1912,"55928":1912,"56035":1916,"56096":1918,"56141":1919,"56352":1926,"56470":1929,"56534":1932,"56597":1934,"56625":1934,"56784":1940,"56888":1943,"56936":1945,"56996":1947,"57154":1952,"57286":1956,"57476":1962,"57578":1965,"57622":1967,"57690":1969,"57740":1970,"57786":1972,"57914":1976,"58213":1986,"58346":1990,"58406":1992,"58670":2001,"58737":2003,"58785":2004,"58990":2010,"59320":2020,"59470":2025,"59724":2033,"59787":2035,"59826":2036,"59954":2040,"59985":2041,"60013":2042,"60039":2042,"60145":2046,"60203":2048,"60301":2051,"60427":2055,"60466":2056,"60487":2057,"60528":2058,"60594":2061,"60684":2064,"60759":2066,"60809":2068,"60874":2070,"60944":2072,"60971":2073,"61021":2075,"61090":2077,"61147":2079,"61265":2082,"61435":2087,"61553":2091,"61602":2093,"61698":2096,"61851":2101,"61894":2102,"61944":2104,"62065":2108,"62233":2113,"62287":2115,"62363":2117,"62545":2123,"62625":2126,"62714":2129,"62846":2133,"63096":2141,"63402":2151,"63456":2153,"63563":2156,"63618":2158,"63658":2159,"63711":2161,"63746":2162,"63790":2163,"63844":2165,"63978":2169,"64004":2170,"64080":2172,"64143":2174,"64204":2176,"64461":2185,"64566":2188,"64609":2190,"64726":2193,"64845":2197,"65402":2215,"65762":2227,"66104":2238,"66349":2245,"66428":2248,"66519":2251,"66612":2254,"66675":2256,"66838":2262,"66954":2265,"67020":2268,"67197":2274,"67272":2276,"67503":2283,"67760":2291,"67834":2294,"67912":2296,"68023":2300,"68098":2302,"68159":2305,"68286":2309,"68389":2312,"68484":2315,"68616":2319,"68668":2321,"68770":2324,"68872":2327,"68955":2330,"69067":2334,"69175":2340,"69266":2347,"69329":2356,"69392":2367,"69417":2374,"69438":2378,"69569":2405,"69658":2414,"69677":2416,"69694":2418,"69737":2424,"69840":2443,"69856":2445,"69916":2453,"69982":2460,"69987":2461,"69992":2462,"70340":2487,"70418":2500,"70453":2507,"70749":2528,"70777":2530,"70859":2536,"71123":2550,"71312":2563,"71342":2566,"71392":2573,"71412":2577,"71460":2585,"71477":2588,"71531":2594,"71543":2595,"71581":2599,"71602":2601,"71620":2603,"71634":2604,"71657":2605,"71684":2607,"71705":2608,"71728":2610,"71742":2610,"71781":2613,"71816":2615,"71944":2622,"72031":2627,"72124":2634,"72142":2635,"72168":2637,"72177":2639,"72236":2644,"72308":2650,"72325":2652,"72367":2656,"72534":2665,"72724":2676,"72770":2679,"72839":2686,"72973":2695,"73154":2706,"73322":2716,"73397":2721,"73530":2738,"73564":2745},"notes":[],"departure_timestamp":1733941151,"departure_datetime_utc":"2024-12-11T18:19:11.000Z","arrival_timestamp":1733944024,"arrival_datetime_utc":"2024-12-11T19:07:04.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 ...
curl --location --request GET 'https://zylalabs.com/api/5765/efficient+directions+api/7495/fetch+optimized+route?origin=Church St & 29th St, San-Francisco, CA, USA&destination=Sunnyvale, CA, USA' --header 'Authorization: Bearer YOUR_API_KEY'
Header | Description |
---|---|
Authorization
|
[Required] Should be Bearer access_key . See "Your API Access Key" above when you are subscribed. |
No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.
The Efficient Directions API offers precise driving directions, optimized routes, real-time traffic data, estimated arrival times, detailed turn-by-turn instructions, traffic avoidance, and route customization.
Businesses can utilize the Efficient Directions API for logistics and delivery management, ensuring reliable navigation solutions that enhance operational efficiency and improve user experiences.
Yes, the Efficient Directions API is ideal for personal travel planning as it provides accurate navigation, helping users save time and arrive at their destinations hassle-free.
The Efficient Directions API is designed to be developer-friendly with a scalable architecture, making it easy to integrate navigation capabilities into modern applications.
Yes, the Efficient Directions API includes features for traffic avoidance, allowing users to select routes that minimize delays caused by real-time traffic conditions.
The Fetch Optimized Route endpoint returns real-time driving directions, including distance, travel time, and detailed turn-by-turn instructions. It also provides information on the best routes based on current traffic conditions.
Key fields in the response data include `status`, `request_id`, `best_routes`, `distance_meters`, `duration_seconds`, and `highlights`. These fields provide essential information about the route and travel conditions.
The response data is structured in a JSON format, with a top-level object containing `status` and `request_id`, followed by a `data` object that includes an array of `best_routes`, each detailing route specifics like distance and duration.
Users can customize their requests using parameters such as `origin` (starting point) and `destination` (ending point). Additional parameters may include options for traffic avoidance or route preferences.
The endpoint provides information on optimal routes, including distance, estimated travel time, traffic conditions, and detailed turn-by-turn navigation instructions, enhancing the navigation experience.
Data accuracy is maintained through real-time updates from traffic monitoring systems and continuous data validation processes. This ensures that users receive the most current and reliable navigation information.
Typical use cases include logistics planning for deliveries, personal travel route optimization, and real-time navigation assistance for drivers, helping to save time and improve travel efficiency.
Users can leverage the returned data by analyzing the `best_routes` for optimal travel paths, using `duration_seconds` for time estimates, and following `turn-by-turn` instructions for precise navigation.
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, refer to the βX-Zyla-API-Calls-Monthly-Remainingβ field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.
To see the maximum number of API requests your plan allows, check the βX-Zyla-RateLimit-Limitβ response header. For instance, if your plan includes 1,000 requests per month, this header will display 1,000.
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 3,600, it means 3,600 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]
To give you the opportunity to experience our APIs without any commitment, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost. This trial can be used only once, so we recommend applying it to the API that interests you the most. While most of our APIs offer a free trial, some may not. The trial concludes after 7 days or once you've made 50 requests, whichever occurs first. If you reach the 50 request limit during the trial, you will need to "Start Your Paid Plan" to continue making requests. You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab. Alternatively, if you don't cancel your subscription before the 7th day, your free trial will end, and your plan will automatically be billed, granting you access to all the API calls specified in your plan. Please keep this in mind to avoid unwanted charges.
After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, itβs important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
Payout Orders are processed between the 20th and the 30th of each month. If you submit your request before the 20th, your payment will be processed within this timeframe.
Service Level:
100%
Response Time:
199ms
Service Level:
100%
Response Time:
708ms
Service Level:
100%
Response Time:
19,514ms
Service Level:
100%
Response Time:
143ms
Service Level:
100%
Response Time:
1,070ms
Service Level:
100%
Response Time:
169ms
Service Level:
100%
Response Time:
2,073ms
Service Level:
100%
Response Time:
2,352ms
Service Level:
100%
Response Time:
759ms
Service Level:
100%
Response Time:
2,173ms
Service Level:
100%
Response Time:
764ms
Service Level:
100%
Response Time:
879ms
Service Level:
100%
Response Time:
209ms
Service Level:
100%
Response Time:
868ms
Service Level:
100%
Response Time:
811ms
Service Level:
100%
Response Time:
330ms
Service Level:
100%
Response Time:
2,357ms
Service Level:
100%
Response Time:
725ms
Service Level:
100%
Response Time:
397ms
Service Level:
100%
Response Time:
719ms