Introducing the Distances API, designed to calculate distances between locations accurately and efficiently. In today's interconnected world, users and individuals alike rely on accurate distance calculations for a variety of purposes, from logistics and transportation planning to location-based services and travel applications. The Distances API offers a comprehensive solution to meet these needs, providing users with the ability to calculate distances between geographic points quickly and easily.
In essence, the Distances API leverages advanced algorithms and geographic data to calculate distances between two or more points on the Earth's surface. Whether you need to determine the distance between two cities, the travel time between multiple waypoints, or the shortest route between multiple locations, the API can handle a wide range of distance calculation tasks accurately and efficiently.
One of the main features of the Distances API is its support for various units of measurement, such as kilometers and miles. This flexibility allows users to customize distance calculations according to their specific needs and preferences, ensuring compatibility with different applications and use cases.
In short, the Distances API offers users a powerful and versatile tool for calculating distances between locations accurately and efficiently. Whether you are building a transportation management system, a travel planning application or a location-based service, the API provides you with the functionality and flexibility you need to deliver accurate distance calculations and enhance the user experience. With its comprehensive features, easy integration and robust security, the Distances API is a valuable asset for any developer looking to incorporate distance calculation capabilities 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.
{"data":{"distance":9857,"units":"kilometers"}}
curl --location --request GET 'https://zylalabs.com/api/4138/distances+api/4998/measuring+distances?p1Lat=41.902782&p1Long=12.496366&p2Lat=35.685013&p2Long=139.7514&unit=km' --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 commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
To use this API users must indicate the coordinates (latitude and longitude) of the 2 points.
The Distances 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 Distances API can arise in a variety of scenarios where distances between geographic locations need to be calculated.
The Distances 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).
Users must provide the latitude and longitude of two points and specify the desired unit of measurement (km or mi) as parameters for the endpoint.
The response data is structured in a JSON format, with a "data" object containing the "distance" and "units" fields, making it easy to parse and utilize in applications.
The Distances API utilizes advanced algorithms and geographic data sources to ensure accurate distance calculations between specified locations.
Typical use cases include logistics for route optimization, 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 (km or mi).
Users can utilize the returned data by integrating the distance information into applications for route planning, travel estimations, or location-based services, enhancing user experience and decision-making.
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
Service Level:
100%
Response Time:
889ms
Service Level:
100%
Response Time:
574ms
Service Level:
100%
Response Time:
487ms
Service Level:
100%
Response Time:
614ms
Service Level:
100%
Response Time:
132ms
Service Level:
100%
Response Time:
789ms
Service Level:
100%
Response Time:
159ms
Service Level:
100%
Response Time:
590ms
Service Level:
100%
Response Time:
120ms
Service Level:
100%
Response Time:
342ms
Service Level:
100%
Response Time:
3,823ms
Service Level:
100%
Response Time:
8,561ms
Service Level:
100%
Response Time:
1,414ms
Service Level:
100%
Response Time:
11,333ms
Service Level:
100%
Response Time:
4,565ms
Service Level:
100%
Response Time:
534ms
Service Level:
100%
Response Time:
1,209ms
Service Level:
100%
Response Time:
1,815ms
Service Level:
100%
Response Time:
5,838ms
Service Level:
100%
Response Time:
2,373ms