With the Distance Calculation API, users can easily obtain the distance between two geographic locations. The API uses sophisticated algorithms and mapping technologies to calculate the shortest distance along the Earth's surface, taking into account various factors such as road networks, terrain and geographical obstacles.
In addition, the Distance Calculation API is designed to be scalable and efficient, capable of handling a large volume of requests with minimal latency. This scalability ensures that the API can adapt to the needs of users of all sizes, from small startups to large enterprises.
In conclusion, the Distance Calculation API offers a complete solution for calculating distances between two locations. Thanks to its ease of use, flexibility, reliability and scalability, the API is an essential tool for users. Whether you are planning a trip, optimizing logistics or developing location-based services, the Distance Calculator API provides you with the precise distance measurements you need to succeed.
It will receive a parameter and provide you with a JSON.
Besides the number of API calls, there is no other limitation.
{
"distance": 5930.22396853846,
"unit": "kilometers",
"location1": {
"place_id": 371380173,
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. http://osm.org/copyright",
"osm_type": "relation",
"osm_id": 175905,
"lat": "40.7127281",
"lon": "-74.0060152",
"class": "boundary",
"type": "administrative",
"place_rank": 10,
"importance": 0.8175766114518461,
"addresstype": "city",
"name": "New York",
"display_name": "New York, United States",
"address": {
"city": "New York",
"state": "New York",
"ISO3166-2-lvl4": "US-NY",
"country": "United States",
"country_code": "us"
},
"boundingbox": [
"40.4765780",
"40.9176300",
"-74.2588430",
"-73.7002330"
]
},
"location2": {
"place_id": 144054890,
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. http://osm.org/copyright",
"osm_type": "relation",
"osm_id": 406091,
"lat": "59.9133301",
"lon": "10.7389701",
"class": "boundary",
"type": "administrative",
"place_rank": 11,
"importance": 0.71373169654299,
"addresstype": "city",
"name": "Oslo",
"display_name": "Oslo, Norway",
"address": {
"city": "Oslo",
"ISO3166-2-lvl4": "NO-03",
"country": "Norway",
"country_code": "no"
},
"boundingbox": [
"59.8093113",
"60.1351064",
"10.4891652",
"10.9513894"
]
}
}
curl --location --request GET 'https://zylalabs.com/api/3845/distance+estimation+api/4491/get+distances?location1=New York&location2=Oslo' --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.
Users must indicate 2 locations to measure the distance.
The Distance Estimation API allows users to calculate the distance between two geographic locations.
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 API returns a JSON object containing the calculated distance between two locations, along with details about each location, including coordinates, place IDs, and address information.
Key fields in the response include "distance" (numeric value), "unit" (e.g., kilometers), and detailed location information for "location1" and "location2," such as latitude, longitude, and address components.
The response is structured as a JSON object with a top-level distance measurement, unit, and nested objects for each location, providing comprehensive details about both geographic points.
The primary parameter required is the two locations, which can be specified using place IDs, coordinates, or addresses to calculate the distance accurately.
The endpoint provides distance measurements, geographical coordinates, and detailed address information for both specified locations, facilitating various applications like route planning and logistics.
The API utilizes sophisticated algorithms and mapping technologies, sourcing data from reliable platforms like OpenStreetMap, ensuring high accuracy in distance calculations.
Common use cases include route planning for deliveries, logistics optimization, travel distance estimation, fitness tracking, and real estate analysis for proximity to amenities.
Users can extract the distance and unit for calculations, while location details can enhance applications by providing context, such as displaying routes on maps or assessing travel times.
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:
789ms
Service Level:
100%
Response Time:
445ms
Service Level:
100%
Response Time:
159ms
Service Level:
100%
Response Time:
590ms
Service Level:
100%
Response Time:
574ms
Service Level:
100%
Response Time:
1,206ms
Service Level:
100%
Response Time:
81ms
Service Level:
100%
Response Time:
487ms
Service Level:
100%
Response Time:
345ms
Service Level:
100%
Response Time:
101ms
Service Level:
100%
Response Time:
634ms
Service Level:
100%
Response Time:
1,424ms
Service Level:
100%
Response Time:
1,882ms
Service Level:
100%
Response Time:
863ms
Service Level:
100%
Response Time:
274ms
Service Level:
100%
Response Time:
2,017ms
Service Level:
100%
Response Time:
1,078ms
Service Level:
100%
Response Time:
297ms
Service Level:
100%
Response Time:
266ms
Service Level:
100%
Response Time:
844ms