Route Planning API

The Route Planning API allows users to find the optimal route between stops using a variety of transportation modes, including driving, cycling, walking, and public transportation.

About the API: 

The Route Planning API is a tool that allows developers to incorporate route planning into their applications. With the API, users can easily find the optimal route between stops, regardless of whether they are driving, cycling, walking, or using public transportation. The API returns detailed information on the route, including turn-by-turn directions, estimated travel time, distance, and real-time traffic information where applicable.

The API supports a wide range of transportation modes, which makes it an ideal solution for applications that involve route planning. For example, a delivery app could use the API to optimize delivery routes, ensuring that drivers spend the least amount of time on the road and can make deliveries as quickly and efficiently as possible. A public transportation app could use the API to provide users with the most convenient and efficient routes, taking into account the schedules and routes of buses, trains, and other public transportation options.

The Route Planning API is also useful for tourism applications, enabling users to find the best routes to popular tourist destinations or create custom travel itineraries. Additionally, the API can be used in urban planning applications, helping city planners to optimize routes for public transportation, cyclists, and pedestrians.

Overall, the Route Planning API is a versatile and powerful tool for incorporating route planning functionality into a wide range of applications, providing users with accurate and efficient route planning information.

 

What this API receives and what your API provides (input/output)?

Pass the GPS coordinates and declare the transportation mode, and receive the best route. 

 

What are the most common uses cases of this API?

  1. Delivery Services: Delivery services can use the Route Planning API to optimize their delivery routes and make sure that their drivers take the most efficient paths, reducing fuel costs and ensuring timely deliveries.

  2. Public Transportation Apps: Public transportation apps can use the API to provide users with the most efficient and convenient routes, taking into account schedules, delays, and route changes.

  3. Ride-Sharing Services: Ride-sharing services can use the Route Planning API to optimize routes for their drivers, ensuring that they can pick up and drop off passengers in the most efficient way possible.

  4. Tourism Apps: Tourism apps can use the API to create custom travel itineraries for users, providing them with the best routes to popular tourist destinations and points of interest.

  5. Fleet Management: Fleet management applications can use the Route Planning API to manage their fleets more efficiently, optimizing routes for drivers and vehicles to reduce fuel consumption and operating costs.

 

Are there any limitations to your plans?

Besides the number of API calls, there is no other limitation. 

API Documentation

Endpoints


Calculate route between provided waypoints, including turn by turn directions

 


                                                                            
GET https://zylalabs.com/api/1453/route+planning+api/1194/get+route
                                                                            
                                                                        

Get Route - Endpoint Features

Object Description
waypoints [Required] List of two or more lat,lon coordinates, separated by the pipe symbol \"|\"
mode [Required] Routing mode - drive, truck, bicycle, walk or transit
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"features":[{"type":"Feature","properties":{"mode":"drive","waypoints":[{"location":[10.87474,48.34364],"original_index":0},{"location":[10.90925,48.37073],"original_index":1}],"units":"metric","distance":7767,"distance_units":"meters","time":630.783,"legs":[{"distance":7767,"time":630.783,"steps":[{"from_index":0,"to_index":88,"distance":1581,"time":114.754,"instruction":{"text":"Drive north on Gögginger Straße."}},{"from_index":88,"to_index":158,"distance":1307,"time":141.6,"instruction":{"text":"Turn right onto Schertlinstraße."}},{"from_index":158,"to_index":174,"distance":189,"time":14.728,"instruction":{"text":"Turn right onto Haunstetter Straße."}},{"from_index":174,"to_index":306,"distance":2959,"time":222.082,"instruction":{"text":"Turn left onto Inverness-Allee/B 300."}},{"from_index":306,"to_index":331,"distance":1034,"time":78.82,"instruction":{"text":"Turn left onto Berliner Allee/B 2."}},{"from_index":331,"to_index":349,"distance":246,"time":23.466,"instruction":{"text":"Turn left to take the ramp."}},{"from_index":349,"to_index":366,"distance":435,"time":31.514,"instruction":{"text":"Bear right onto Lechhauser Straße."}},{"from_index":366,"to_index":369,"distance":14,"time":3.815,"instruction":{"text":"Turn right onto Oblatterwallstraße."}},{"from_index":369,"to_index":369,"distance":0,"time":0,"instruction":{"text":"Your destination is on the left."}}]}]},"geometry":{"type":"MultiLineString","coordinates":[[[10.874805,48.343631],[10.874852,48.343782],[10.874924,48.344021],[10.874952,48.34411],[10.874987,48.344253],[10.875009,48.344339],[10.875011,48.344449],[10.875012,48.344492],[10.875087,48.344734],[10.875106,48.344792],[10.875168,48.344975],[10.875213,48.345085],[10.875268,48.345217],[10.875287,48.345257],[10.875318,48.345318],[10.875337,48.345356],[10.87538,48.345428],[10.875401,48.345462],[10.875493,48.345611],[10.875527,48.345665],[10.875643,48.345853],[10.875669,48.345889],[10.875678,48.345903],[10.875736,48.345949],[10.875915,48.346097],[10.875964,48.346152],[10.876018,48.346218],[10.876052,48.346259],[10.876196,48.346467],[10.876206,48.346481],[10.876255,48.346558],[10.876314,48.34666],[10.876337,48.3467],[10.876374,48.346763],[10.876409,48.346823],[10.876531,48.347054],[10.876735,48.347464],[10.877069,48.348229],[10.877082,48.348258],[10.877058,48.348339],[10.87705,48.348366],[10.877112,48.348504],[10.877244,48.348796],[10.877357,48.349011],[10.877454,48.34916],[10.877571,48.349303],[10.87779,48.34955],[10.877845,48.349586],[10.877906,48.349627],[10.877935,48.349646],[10.878039,48.349731],[10.878156,48.349847],[10.878293,48.350011],[10.878498,48.350257],[10.878568,48.350342],[10.878661,48.350479],[10.878728,48.350606],[10.87873,48.350669],[10.878732,48.350702],[10.878847,48.350833],[10.878936,48.350934],[10.879319,48.351371],[10.879521,48.351599],[10.879955,48.352082],[10.879992,48.352123],[10.88022,48.352375],[10.880292,48.35245],[10.880353,48.352488],[10.880606,48.35265],[10.880671,48.352694],[10.880791,48.352833],[10.880852,48.352904],[10.880968,48.353038],[10.881192,48.35322],[10.881314,48.353295],[10.881532,48.353413],[10.881562,48.353427],[10.882033,48.353621],[10.882511,48.353802],[10.883251,48.354087],[10.883709,48.354257],[10.88409,48.354405],[10.884834,48.354687],[10.885036,48.354764],[10.885074,48.354783],[10.885241,48.354898],[10.885351,48.35499],[10.885465,48.3551],[10.885569,48.355202],[10.885652,48.355175],[10.885765,48.355134],[10.886133,48.355011],[10.886929,48.354756],[10.886962,48.354733],[10.887009,48.354728],[10.887455,48.354571],[10.887786,48.354453],[10.887895,48.354415],[10.888667,48.354153],[10.88903,48.354026],[10.889433,48.353893],[10.889467,48.353869],[10.889518,48.353865],[10.889688,48.353808],[10.890013,48.353698],[10.890683,48.353473],[10.890821,48.353429],[10.890889,48.353411],[10.891029,48.353395],[10.891253,48.353373],[10.891556,48.353342],[10.891764,48.353325],[10.891836,48.353318],[10.891882,48.353314],[10.892014,48.353302],[10.892076,48.353297],[10.892202,48.353287],[10.892336,48.353276],[10.892399,48.353272],[10.89266,48.353253],[10.892707,48.35325],[10.892751,48.353247],[10.893422,48.353193],[10.893786,48.353157],[10.893994,48.353133],[10.894322,48.353096],[10.894342,48.353094],[10.894458,48.353082],[10.895595,48.352963],[10.89567,48.352956],[10.895911,48.352933],[10.896132,48.352907],[10.89665,48.352851],[10.896923,48.352821],[10.897141,48.352797],[10.897905,48.352721],[10.897947,48.352717],[10.89811,48.352701],[10.898203,48.352691],[10.898251,48.352686],[10.898297,48.352681],[10.898503,48.352659],[10.89914,48.352592],[10.899372,48.352567],[10.899629,48.352539],[10.899804,48.352519],[10.899925,48.352507],[10.900208,48.352476],[10.900886,48.352402],[10.901335,48.352353],[10.901346,48.352351],[10.901434,48.352334],[10.901513,48.35232],[10.901655,48.352259],[10.902068,48.352183],[10.902129,48.352172],[10.902189,48.352175],[10.902227,48.352179],[10.902406,48.352192],[10.902474,48.352066],[10.902497,48.35202],[10.902507,48.351999],[10.902536,48.351939],[10.902749,48.351502],[10.902753,48.351442],[10.902762,48.351328],[10.902783,48.351283],[10.902825,48.35119],[10.902877,48.3511],[10.902922,48.351035],[10.903002,48.350947],[10.903064,48.35088],[10.903152,48.350809],[10.903226,48.350756],[10.903404,48.350677],[10.903463,48.350768],[10.903528,48.350833],[10.903591,48.350903],[10.90381,48.351096],[10.904013,48.351255],[10.904164,48.351395],[10.904272,48.351549],[10.904368,48.351743],[10.904406,48.351891],[10.904487,48.352205],[10.904532,48.352312],[10.904576,48.352411],[10.904637,48.352522],[10.904698,48.352617],[10.904755,48.352691],[10.904813,48.35276],[10.904879,48.352823],[10.904959,48.352888],[10.905049,48.352961],[10.90512,48.353018],[10.905217,48.353086],[10.905325,48.353146],[10.905467,48.353223],[10.905615,48.35329],[10.905765,48.353353],[10.905902,48.353409],[10.906079,48.353472],[10.906243,48.35353],[10.906411,48.353591],[10.906552,48.353652],[10.906685,48.353712],[10.906828,48.353781],[10.906999,48.353868],[10.907168,48.353954],[10.907248,48.353995],[10.907371,48.354061],[10.907465,48.354113],[10.907602,48.354189],[10.907983,48.35441],[10.908289,48.354612],[10.908458,48.354751],[10.908491,48.354779],[10.908588,48.354858],[10.908717,48.354981],[10.908902,48.355165],[10.909036,48.355299],[10.909177,48.355448],[10.909478,48.355831],[10.909663,48.356084],[10.909712,48.35615],[10.909789,48.356263],[10.909867,48.356389],[10.909932,48.356514],[10.910009,48.35668],[10.910051,48.356791],[10.910084,48.356877],[10.910189,48.357271],[10.910298,48.357714],[10.91033,48.357886],[10.910419,48.358248],[10.910496,48.358695],[10.910525,48.358927],[10.910541,48.359265],[10.910539,48.359604],[10.910541,48.359999],[10.910539,48.36024],[10.910528,48.360434],[10.910474,48.361134],[10.910451,48.361584],[10.910424,48.361825],[10.910388,48.362033],[10.910351,48.362208],[10.910301,48.362402],[10.910244,48.362584],[10.910203,48.362705],[10.910164,48.362806],[10.910126,48.362887],[10.910068,48.363021],[10.910007,48.363171],[10.90995,48.3633],[10.909906,48.363407],[10.909863,48.363533],[10.909846,48.363618],[10.909841,48.363708],[10.909841,48.36383],[10.909869,48.363978],[10.909918,48.364111],[10.909933,48.364153],[10.90997,48.364227],[10.910014,48.364302],[10.910067,48.364364],[10.910128,48.364427],[10.910224,48.36451],[10.910328,48.364584],[10.910472,48.364667],[10.910562,48.364714],[10.910669,48.364759],[10.910823,48.364818],[10.91092,48.36485],[10.911076,48.364895],[10.911252,48.364947],[10.911658,48.365065],[10.912326,48.365283],[10.913694,48.365778],[10.913772,48.365805],[10.913915,48.365857],[10.914158,48.365943],[10.914205,48.36596],[10.914317,48.366001],[10.915827,48.366545],[10.916178,48.36667],[10.916252,48.366696],[10.916444,48.366765],[10.916638,48.366845],[10.917189,48.367074],[10.917308,48.367127],[10.917412,48.367176],[10.917774,48.36737],[10.919059,48.368041],[10.919126,48.368076],[10.919311,48.368177],[10.920262,48.368721],[10.921442,48.36944],[10.921576,48.369521],[10.921719,48.369608],[10.921756,48.369629],[10.922271,48.369977],[10.922687,48.370247],[10.923226,48.370641],[10.92327,48.370673],[10.923346,48.370728],[10.923512,48.37085],[10.923406,48.37092],[10.923325,48.370966],[10.922385,48.371478],[10.922107,48.371625],[10.921725,48.371762],[10.921441,48.371849],[10.921404,48.37187],[10.918823,48.373031],[10.918117,48.373348],[10.918073,48.373369],[10.917904,48.373443],[10.917762,48.373509],[10.917716,48.373529],[10.915772,48.37442],[10.915608,48.374495],[10.915487,48.374549],[10.914567,48.374956],[10.914354,48.375056],[10.914163,48.375144],[10.91317,48.375589],[10.913095,48.375622],[10.912728,48.375785],[10.912253,48.375995],[10.9122,48.376018],[10.912028,48.376099],[10.911946,48.376019],[10.911887,48.375974],[10.911772,48.375883],[10.911551,48.375733],[10.911449,48.37563],[10.911419,48.375596],[10.911362,48.375483],[10.911359,48.375321],[10.911357,48.375205],[10.911416,48.375076],[10.9115,48.374975],[10.911547,48.374918],[10.91169,48.374793],[10.911862,48.374641],[10.912026,48.374479],[10.912101,48.37437],[10.91213,48.374311],[10.912169,48.374184],[10.91211,48.37398],[10.91202,48.373799],[10.911915,48.373632],[10.911616,48.373309],[10.911209,48.372897],[10.91022,48.371896],[10.910177,48.371838],[10.910058,48.371679],[10.909977,48.37157],[10.909963,48.371552],[10.909786,48.371212],[10.90975,48.371146],[10.909693,48.37104],[10.909654,48.370982],[10.909636,48.370955],[10.909574,48.370863],[10.90949,48.370735],[10.909402,48.370761],[10.909349,48.370776],[10.909316,48.370792]]]}}],"properties":{"mode":"drive","waypoints":[{"lat":48.34364,"lon":10.87474},{"lat":48.37073,"lon":10.90925}],"units":"metric"},"type":"FeatureCollection"}
                                                                                                                                                                                                                    
                                                                                                    

Get Route - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/1453/route+planning+api/1194/get+route?waypoints=48.34364,10.87474|48.37073,10.90925&mode=drive' --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 Route Planning 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

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 1000 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 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]

To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.

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 trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.

 Service Level
100%
 Response Time
953ms

Category:


Related APIs