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.
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,057ms
Service Level:
100%
Response Time:
747ms
Service Level:
100%
Response Time:
568ms
Service Level:
100%
Response Time:
285ms
Service Level:
100%
Response Time:
574ms
Service Level:
100%
Response Time:
590ms
Service Level:
100%
Response Time:
445ms
Service Level:
100%
Response Time:
146ms
Service Level:
100%
Response Time:
351ms
Service Level:
100%
Response Time:
4,352ms
Service Level:
100%
Response Time:
302ms
Service Level:
100%
Response Time:
1,381ms
Service Level:
100%
Response Time:
227ms
Service Level:
100%
Response Time:
6,064ms
Service Level:
100%
Response Time:
464ms
Service Level:
100%
Response Time:
427ms
Service Level:
100%
Response Time:
118ms
Service Level:
100%
Response Time:
121ms
Service Level:
100%
Response Time:
346ms
Service Level:
100%
Response Time:
122ms