To enable users to effortlessly determine the distance between two geographic points, the Distance Validator API employs advanced algorithms and mapping technologies. It calculates the shortest distance across the earth's surface, taking into account variables such as road networks, terrain and geographical obstacles.
In addition, the Distance Validator API is designed to be scalable and efficient, capable of handling large volumes of requests with minimal latency. This scalability ensures adaptability to the needs of users of all types, from start-ups to large companies.
In summary, the Distance Validator API presents a comprehensive solution for calculating distances between locations. Thanks to its ease of implementation, versatility, reliability and scalability, this API becomes an indispensable resource. Whether it's organizing travel plans, streamlining logistics operations or creating location-centric services, the Distance Validator API delivers the pinpoint accuracy required for success.
It will receive a parameter and provide you with a JSON.
Besides the number of API calls, there is no other limitation.
{
"distance": 11024.713181071042,
"unit": "kilometers",
"location1": {
"place_id": 15312163,
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. http://osm.org/copyright",
"osm_type": "relation",
"osm_id": 1224652,
"lat": "-34.6037181",
"lon": "-58.38153",
"class": "boundary",
"type": "administrative",
"place_rank": 16,
"importance": 0.7279817834797908,
"addresstype": "city",
"name": "Buenos Aires",
"display_name": "Buenos Aires, Comuna 1, Autonomous City of Buenos Aires, Argentina",
"address": {
"city": "Buenos Aires",
"ISO3166-2-lvl8": "AR-C",
"state_district": "Comuna 1",
"state": "Autonomous City of Buenos Aires",
"ISO3166-2-lvl4": "AR-C",
"country": "Argentina",
"country_code": "ar"
},
"boundingbox": [
"-34.7056370",
"-34.5265535",
"-58.5314494",
"-58.3351423"
]
},
"location2": {
"place_id": 82297359,
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. http://osm.org/copyright",
"osm_type": "relation",
"osm_id": 71525,
"lat": "48.8534951",
"lon": "2.3483915",
"class": "boundary",
"type": "administrative",
"place_rank": 12,
"importance": 0.8317101715588673,
"addresstype": "city",
"name": "Paris",
"display_name": "Paris, Ile-de-France, Metropolitan France, France",
"address": {
"city": "Paris",
"ISO3166-2-lvl6": "FR-75",
"state": "Ile-de-France",
"ISO3166-2-lvl4": "FR-IDF",
"region": "Metropolitan France",
"country": "France",
"country_code": "fr"
},
"boundingbox": [
"48.8155755",
"48.9021560",
"2.2241220",
"2.4697602"
]
}
}
curl --location --request GET 'https://zylalabs.com/api/3868/distance+validator+api/4567/calculate+distances?location1=Buenos Aires&location2=Paris' --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 Validator API grants users the capability to swiftly and accurately compute the distance between any two geographic points.
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, the unit of measurement (e.g., kilometers), and detailed information about each location, including coordinates and place identifiers.
Key fields include "distance" (numeric value), "unit" (measurement unit), and "location1" and "location2" objects, which provide details like latitude, longitude, and place names.
The response is structured as a JSON object with a top-level distance field, a unit field, and nested objects for each location containing attributes like place_id, coordinates, and address details.
The primary parameter required is the two locations for which the distance is to be calculated. These can be specified using place names, coordinates, or place IDs.
The Distance Validator API utilizes advanced algorithms and mapping technologies, sourcing data from reliable providers like OpenStreetMap, ensuring high accuracy in distance calculations.
Common use cases include route planning for deliveries, logistics optimization between warehouses, travel distance estimation, and fitness tracking for workouts.
Users can extract the distance and unit for route planning or logistics, while location details can enhance applications by providing context, such as proximity to amenities in real estate apps.
The endpoint provides distance measurements, location coordinates, place identifiers, and detailed address information, allowing users to gain insights into geographic relationships between locations.
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:
120ms
Service Level:
100%
Response Time:
624ms
Service Level:
100%
Response Time:
537ms
Service Level:
100%
Response Time:
81ms
Service Level:
100%
Response Time:
443ms
Service Level:
100%
Response Time:
429ms
Service Level:
100%
Response Time:
175ms
Service Level:
100%
Response Time:
517ms
Service Level:
100%
Response Time:
159ms
Service Level:
100%
Response Time:
417ms
Service Level:
100%
Response Time:
86ms
Service Level:
100%
Response Time:
53ms
Service Level:
100%
Response Time:
1,541ms
Service Level:
100%
Response Time:
3,692ms
Service Level:
100%
Response Time:
316ms
Service Level:
100%
Response Time:
57ms
Service Level:
100%
Response Time:
49ms
Service Level:
100%
Response Time:
1,417ms
Service Level:
100%
Response Time:
726ms
Service Level:
100%
Response Time:
655ms