{"data":{"distance":9857,"units":"kilometers"}}
curl --location --request GET 'https://pr213-testing.zylalabs.com/api/4528/distance+planner+api/5570/measuring+distances?p1Lat=41.902782&p1Long=12.496366&p2Lat=35.685013&p2Long=139.7514&unit=km' --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 Distance Planner 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 🎉)
Trusted by leading companies
Introducing the Distance Planner API, a powerful tool designed to perform accurate and efficient calculations of distances between locations. In today's interconnected world, accurate distance calculations are crucial for logistics, transportation planning, travel applications and location-based services. The Distance Planner API meets these needs by providing a comprehensive solution that enables users to calculate distances between geographic points quickly and easily.
Using advanced algorithms and geographic data, the Distance Planner API accurately calculates distances over the Earth's surface. Whether it's determining the distance between cities, calculating travel times between intermediate points or finding the shortest routes between multiple locations, the API efficiently handles a wide range of distance calculation tasks.
Key features of the Distance Planner API include support for multiple units of measurement, such as kilometers and miles. This flexibility allows users to tailor distance calculations to their specific needs, ensuring compatibility with various applications and use cases.
In summary, Distance Planner API provides users with a versatile set of tools to calculate distances between locations accurately and efficiently. Whether developing transportation management systems, trip planners or location-based services, the API offers essential functions to enhance the user experience. With its robust functionality, seamless integration and high security, the Distance Planner API is a valuable resource for developers who want to integrate accurate distance calculation functions into their applications.
What this API receives and what your API provides (input/output)?
It will receive a parameters and provide you with a JSON.
Besides the number of API calls per month, there are no other limitations.
To use this API users must indicate the coordinates (latitude and longitude) of the 2 points.
The Distance Planner API provides users with the ability to calculate distances between geographic points, such as addresses, coordinates or landmarks.
There are different plans to suit all tastes, including a free trial for a small number of requests, but your rate is limited to avoid abuse of the service.
Zyla provides a wide range of integration methods for almost all programming languages. You can use these codes to integrate with your project as you need.
The need for the Distance Planner API can arise in a variety of scenarios where distances between geographic locations need to be calculated.
The Distance Planner API returns JSON data that includes the calculated distance between two geographic points, along with the unit of measurement (kilometers or miles).
The key fields in the response data include "distance," which indicates the calculated distance, and "units," which specifies the measurement unit used (either kilometers or miles).
The endpoint requires parameters for the latitude and longitude of two points, as well as a parameter to specify the unit of measurement (either "km" or "mi").
The response data is organized in a JSON format, with a "data" object containing the "distance" and "units" fields, making it easy to parse and utilize in applications.
The Distance Planner API utilizes advanced algorithms and geographic data from reliable mapping sources to ensure accurate distance calculations between locations.
Typical use cases include logistics for optimizing shipping routes, travel planning for itinerary creation, and location-based services for finding nearby points of interest.
Users can customize their requests by specifying different latitude and longitude coordinates for various locations and choosing their preferred unit of measurement for distance.
Users can utilize the returned data by integrating the distance information into applications for route planning, travel estimations, or logistics management, enhancing user experience and operational efficiency.
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