{"distance":725.3031960254968}
curl --location --request GET 'https://zylalabs.com/api/2310/route+distance+api/2218/get+two+points+distance?lat1=41.977222&lon1=-87.836721&lat2=40.730612&lon2=-73.935232&metric=mi' --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 Route Distance 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
The Route Distance API provides users with a simple and efficient solution for calculating distances between geographic locations. Designed with simplicity and versatility in mind, this API is a valuable tool for a wide range of applications and industries.
With the Route Distance API, users can easily integrate distance calculation functions into their projects without the need for complex algorithms or extensive coding. The API contains an easy-to-use endpoint and well-documented guidelines, allowing developers of all levels to effortlessly implement distance calculation functions.
The API supports multiple distance metrics, including popular options for measuring such as km, meters, centimeters. This flexibility allows developers to choose the most appropriate metric for their specific use case, ensuring accurate distance measurements for different scenarios.
For applications requiring geocoding support, the Route Distance API comes equipped with an integrated geocoding function. This function enables seamless conversion between addresses and geographic coordinates, providing latitude and longitude data essential for accurate distance calculations.
By integrating real-time traffic data into distance calculations, users can enhance the route planning and navigation functions of their applications. This enables users to make informed decisions based on current road conditions and traffic situations.
The Route Distance API provides responses in well-structured formats, such as JSON, making it easy for developers to parse the data and integrate it seamlessly into their applications.
In conclusion, the Route Distance API offers a versatile and easy-to-use solution for distance calculation needs. With support for multiple distance metrics, geocoding, route optimization, this API satisfies a wide range of use cases in various industries. Users can quickly implement accurate distance calculation functions, enriching their applications with valuable location functions. This API simplifies the distance calculation process and delivers accurate results to improve the user experience, whether in logistics, travel, fitness, real estate or location-based services.
It will receive parameters and provide you with a JSON.
Delivery services: The API can be used by delivery service providers to optimize their routes, minimizing travel time and fuel consumption while ensuring on-time deliveries to customers.
Trip planning applications: Trip planning applications can use the API to calculate distances between various tourist attractions, hotels and points of interest, helping users to plan their trips more efficiently.
Fitness tracking apps: Fitness tracking apps can leverage the API to measure the distance traveled by users during activities such as running, walking or cycling, allowing them to track their progress and set goals.
Real estate listings: Real estate platforms can incorporate distance calculations to show the proximity of properties to essential amenities, such as schools, parks, shopping centers and public transportation.
Ridesharing services: Ridesharing applications can use the API to determine distances between drivers and passengers, ensuring accurate fare calculations and efficient matching.
Besides the number of API calls, there is no other limitation.
There are different plans suits everyone including a free trial for small amount of requests, but it’s rate is limit to prevent 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.
To use this api the user must indicate the latitude and longitude to measure the distance of 2 points, along with a unit of measurement.
It is an API that offers users a simple and efficient solution for calculating distances between geographic locations.
The Route Distance API returns distance measurements between two geographic points, along with the specified unit of measurement. The response is structured in JSON format, providing a clear and concise output.
The key field in the response data is "distance," which indicates the calculated distance between the two points in the specified unit. Additional metadata may be included in future updates.
The endpoint accepts parameters for the latitude and longitude of two points, as well as a unit of measurement (e.g., m, cm, mi, ft, in, yd) to customize the distance calculation.
The response data is organized in a JSON format, with the primary key being "distance." This structure allows for easy parsing and integration into applications.
The Route Distance API utilizes a combination of mapping and geolocation data sources to ensure accurate distance calculations. Data accuracy is maintained through regular updates and quality checks.
Typical use cases include optimizing delivery routes, planning trips between attractions, tracking fitness activities, and calculating distances for real estate listings or ridesharing services.
Users can customize their requests by specifying different latitude and longitude coordinates for the two points and selecting their preferred unit of measurement for the distance calculation.
Users can utilize the returned distance data to enhance applications by providing users with accurate travel distances, optimizing routes, or integrating distance metrics into fitness tracking and trip planning features.
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