The Distance Mapping Data API is a powerful solution designed to calculate and provide travel distances and durations between multiple starting points and destinations. It is an invaluable tool for users looking to integrate geographic data into their applications, enhancing decision-making in logistics, trip planning, and transportation services.
By using the Distance Mapping Data API, users can input various parameters, such as origin and destination addresses. The API processes these inputs and generates a structured response that includes essential details about the route between the specified locations. This output typically provides an array of origin and destination addresses, presenting route information clearly.
In conclusion, whether for personal use or within applications, the Distance Mapping Data API simplifies route planning and journey time estimation. Its comprehensive, structured results make it an essential resource for integrating geographic data into systems, enhancing functionality and overall user experience in today’s connected world.
To use this endpoint you must indicate 2 locations in the parameters.
For example:
New York City, NY
Washington, DC
Get Distance - Endpoint Features
| Object | Description |
|---|---|
destinations |
[Required] |
origins |
[Required] |
{
"destination_addresses" :
[
"100 Universal City Plaza, Universal City, CA 91608, USA"
],
"origin_addresses" :
[
"Anaheim, CA 92802, USA"
],
"rows" :
[
{
"elements" :
[
{
"distance" :
{
"text" : "57.0 km",
"value" : 57035
},
"duration" :
{
"text" : "47 mins",
"value" : 2796
},
"status" : "OK"
}
]
}
],
"status" : "OK"
}
curl --location --request GET 'https://zylalabs.com/api/5451/distance+mapping+data+api/7075/get+distance?destinations=100 Universal City Plaza, Universal City, CA 91608, USA&origins=Anaheim, CA 92802, USA' --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 2 locations to measure the distance.
The Distance Mapping Data API calculates and monitors the distance between two or more locations, providing real-time updates on travel time, distance covered, and estimated arrival, enhancing logistics and travel management.
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.
Receives origin and destination inputs and provides calculated distance, travel time, and status between specified locations efficiently.
Besides the number of API calls per month, there are no other limitations.
The API returns travel distance, duration, and status between specified origin and destination locations. It provides detailed route information, including the distance in both text and numeric formats, as well as estimated travel time.
Key fields in the response include "origin_addresses," "destination_addresses," "distance" (with "text" and "value"), "duration" (with "text" and "value"), and "status." These fields provide essential information about the route and travel metrics.
The response data is structured in a JSON format, with arrays for origin and destination addresses, and a "rows" array containing "elements" that detail distance and duration. This organization allows for easy parsing and access to specific data points.
The endpoint provides information on travel distance, estimated travel time, and the status of the route. It allows users to assess the feasibility of trips and plan logistics effectively.
Users must provide two parameters: the origin and destination locations. These can be specified as addresses or geographic coordinates, allowing for flexibility in input formats.
Users can extract distance and duration values to estimate travel times for logistics or trip planning. The structured response allows for integration into applications, enabling features like route optimization and travel time predictions.
The API sources its data from reliable geographic and mapping services, ensuring accurate distance and travel time calculations based on real-world conditions and routes.
Typical use cases include logistics planning, trip itinerary creation, delivery route optimization, and transportation service management, helping users make informed decisions based on travel metrics.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used 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.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
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, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
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.
Service Level:
100%
Response Time:
1,061ms
Service Level:
100%
Response Time:
285ms
Service Level:
100%
Response Time:
568ms
Service Level:
100%
Response Time:
747ms
Service Level:
100%
Response Time:
445ms
Service Level:
100%
Response Time:
574ms
Service Level:
100%
Response Time:
590ms
Service Level:
100%
Response Time:
142ms
Service Level:
100%
Response Time:
146ms
Service Level:
100%
Response Time:
351ms
Service Level:
100%
Response Time:
1,447ms
Service Level:
100%
Response Time:
1,274ms
Service Level:
100%
Response Time:
482ms
Service Level:
100%
Response Time:
16ms
Service Level:
100%
Response Time:
16ms
Service Level:
100%
Response Time:
8,511ms
Service Level:
100%
Response Time:
369ms
Service Level:
100%
Response Time:
1,021ms
Service Level:
100%
Response Time:
636ms
Service Level:
100%
Response Time:
2,140ms