Routes and Directions API

Routes and Directions API

The Routes and Directions API is a web-based tool that allows users to find the best route for driving, cycling or walking, providing directions and estimated times of arrival. It can be used for applications such as navigation systems, transportation and logistics management, and personal use.

API description

About the API:

The Routes and Directions API is a powerful tool for finding the best route for driving, cycling or walking. The API takes in a starting location and a destination location and returns a set of instructions and a polyline representation of the route. The polyline is an encoded string that can be plotted on a map to show the route. The API also provides additional information such as distance, estimated time of travel, and alternative routes.

This API can be integrated into a variety of applications such as navigation systems, transportation and logistics management, personal use, and more. It allows users to select their preferred mode of transportation, whether it be driving, cycling, or walking, and returns the most optimal route for that mode. It also has the ability to avoid certain types of roads or areas, for example, Toll roads or restricted areas.

The API supports multiple languages and different units of measure, so it can be used for different regions and cultures. It also provides estimated times of arrival based on real-time traffic data, making it a valuable tool for transportation and logistics management.

In summary, the Routes and Directions API is a valuable tool for anyone looking to find the best route for driving, cycling, or walking. It provides directions and additional information such as distance and alternative routes, estimated times of arrival, and the ability to avoid certain types of roads or areas. It's easy to use and supports multiple languages and units of measure, making it versatile for different regions and cultures.

 

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

Pass the coordinates for the start and end points. The API will return the estimated time, the best route, and directions. 

 

What are the most common uses cases of this API?

  1. Navigation Systems: The API can be used to generate routes and provide turn-by-turn instructions for drivers, cyclists, and pedestrians.

  2. Transportation and Logistics Management: The API can be used to plan routes for a fleet of vehicles and optimize delivery times by avoiding traffic.

  3. Ride-sharing platforms: The API can be used to calculate the optimal route for a driver to take to pick up and drop off passengers.

  4. Personal Use: The API can be used by individuals to plan routes for driving, cycling, or walking, and to estimate the time of arrival.

  5. Travel and Tourism: The API can be used to plan routes for sightseeing and to find the best way to reach destinations by foot, bike or car.

  6. Outdoor activities: The API can be used to plan routes for hiking, running, and other outdoor activities, and to estimate the time of arrival.

 

Are there any limitations to your plans?

Besides API call limitations per month, there are no other limitations. 

API Documentation

Endpoints


Pass the start and end coordinates for your trip. Select the Routing mode - drive, truck, bicycle, walk or transit and receive the best route for the trip. 

 



                                                                            
GET https://zylalabs.com/api/937/routes+and+directions+api/755/get+directions
                                                                            
                                                                        

Get Directions - 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 Directions - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/937/routes+and+directions+api/755/get+directions?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 Routes and Directions 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
  • Dedicated account manager
  • Service-level agreement (SLA)

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, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.

Prices are listed in USD. 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 with paying by card, just contact us at [email protected]

Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further

Prices are based on a recurring monthly subscription depending on the plan selected — plus overage fees applied when a developer exceeds a plan’s quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.

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.

Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.

Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.

You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]

 Service Level
100%
 Response Time
1,070ms

Category:


Tags:


Related APIs