Master Distance API

The Master Distance API is a powerful tool designed to provide accurate distance calculations between a given reference point and up to 9 different points. With this API, you can easily integrate distance calculation functionality into your applications, allowing you to determine distances between multiple locations.

About the API:  

The API allows you to make requests and receive JSON responses with the calculated distances. To initiate a distance calculation, you need to provide the latitude and longitude coordinates of the reference point, as well as the coordinates of each of the 9 target points.

Upon receiving a request, the API uses an advanced algorithm to calculate distances and provides accurate results for both short and long distances. Calculated distances are returned in kilometers, meters, miles, feet, nautical miles, as preferred.

The API offers seamless integration capabilities and supports multiple programming languages, making it compatible with a wide range of applications. You can easily incorporate this functionality into your website, mobile application or any other software system that requires distance calculations.

In addition to basic distance calculations, the API also provides several one endpoints to measure only 2 distances, so the user does not need to enter 9 points.

The Master Distance API offers high performance and reliability, ensuring fast response times even when dealing with large volumes of requests. This allows you to handle increased traffic and provide a consistent service, regardless of the load.

Whether you are building a navigation application, a delivery service or any other location-based application, the Master Distance API provides you with an efficient solution for determining distances between a reference point and various destination points. By leveraging this API, you can enhance the functionality of your application, optimize route planning and provide a smooth user experience.

In short, the Master Distance API offers a simple and reliable way to calculate distances between a reference point and up to 10 different points. Thanks to its robust functionality, easy integration and high performance, this API is a valuable asset for any application that requires accurate distance calculations.

 

What this API receives and what your API provides (input/output)?

It will receive parameters and provide you with a JSON.

 

What are the most common uses cases of this API?

  1. Delivery services: Delivery companies can use the API to determine the distances between their distribution centers and customer addresses. This enables efficient route planning, optimizing delivery schedules and minimizing transportation costs.

  2. Travel planning: Travel booking platforms can incorporate the API to help users plan their itineraries by calculating the distances between various tourist attractions. This helps create optimized travel routes and estimate travel times.

  3. Ridesharing applications: ridesharing services can leverage the API to calculate distances between the user's pickup location and nearby drivers. This information helps match passengers with the most suitable drivers and provide accurate fare estimates.

  4. Fitness applications: Fitness applications that track outdoor activities, such as running or cycling, can use the API to calculate the distances traveled by users during their workouts. This allows users to monitor their progress, set goals and track their performance over time.

  5. Real estate websites: Real estate platforms can integrate the API to provide information on distances between listed properties and nearby amenities, such as schools, parks or shopping centers. This helps potential buyers or tenants assess the convenience and accessibility of a particular location.

Are there any limitations to your plans?

Besides the number of API calls, there are no other limitations.

API Documentation

Endpoints


To use this endpoint all you have to do is insert the latitude and longitude of both points. It also has 2 optional parameters where you can indicate the unit of measurement (kilometers default, meters, thousands, feet, nautical_miles)



                                                                            
GET https://zylalabs.com/api/2043/master+distance+api/1822/get+distance+of+two+points
                                                                            
                                                                        

Get Distance of two points - Endpoint Features

Object Description
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"distance":2101.7205905176984,"unit":"kilometers"}
                                                                                                                                                                                                                    
                                                                                                    

Get Distance of two points - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/2043/master+distance+api/1822/get+distance+of+two+points' --header 'Authorization: Bearer YOUR_API_KEY' 


    

To use this endpoint you must indicate in the parameter the latitude and longitude of a starting point. Then you must indicate the latitude and longitude of the points you want to obtain the distance (you can indicate between 1 to 10).

You can also indicate the unit of measurement of the distance (kilometers, meters, thousands, feet, nautical_miles).



                                                                            
GET https://zylalabs.com/api/2043/master+distance+api/1823/obtain+distance+from+several+points
                                                                            
                                                                        

Obtain distance from several points - Endpoint Features

Object Description
start_point [Required]
end_point_1 [Optional]
end_point_2 [Optional]
end_point_3 [Optional]
end_point_4 [Optional]
end_point_5 [Optional]
end_point_6 [Optional]
end_point_7 [Optional]
end_point_8 [Optional]
end_point_9 [Optional]
unit [Optional]
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"start_point":{"coordinate":"(47.373535,8.541109)"},"end_point_1":{"coordinate":"(61.280642,9.696496)","distance":961.307706388549},"end_point_2":{"coordinate":"(42.335321,-71.023516)","distance":3736.183739418061},"end_point_3":{"coordinate":"(63.946372,-17.301934)","distance":1502.7828135951415},"end_point_4":{"coordinate":"(29.783423,-82.937419)","distance":4798.187339972254},"end_point_5":{"coordinate":"(39.177734,-123.404589)","distance":5762.456574816487},"end_point_6":{"coordinate":"(40.116758,-111.149673)","distance":5346.382214243799},"end_point_7":{"coordinate":"(41.192840,-2.550522)","distance":693.6219006592844},"end_point_8":{"coordinate":"(61.402022,23.717415)","distance":1138.5416195733615},"end_point_9":{"coordinate":"(57.079849,-116.604973)","distance":4561.1790023445465},"unit":"miles"}
                                                                                                                                                                                                                    
                                                                                                    

Obtain distance from several points - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/2043/master+distance+api/1823/obtain+distance+from+several+points?start_point=(47.373535,8.541109)&end_point_1=(61.280642,9.696496)&end_point_2=(42.335321,-71.023516)&end_point_3=(63.946372,-17.301934)&end_point_4=(29.783423,-82.937419)&end_point_5=(39.177734,-123.404589)&end_point_6=(40.116758,-111.149673)&end_point_7=(41.192840,-2.550522)&end_point_8=(61.402022,23.717415)&end_point_9=(57.079849,-116.604973)&unit=miles' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API Access Key & Authentication

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 Master Distance API REST API, simply include your bearer token in the Authorization header.
Headers
Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

🚀 Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Specialized Customer Support
  • Real-Time API Monitoring

Customer favorite features

  • ✔︎ Only Pay for Successful Requests
  • ✔︎ Free 7-Day Trial
  • ✔︎ Multi-Language Support
  • ✔︎ One API Key, All APIs.
  • ✔︎ Intuitive Dashboard
  • ✔︎ Comprehensive Error Handling
  • ✔︎ Developer-Friendly Docs
  • ✔︎ Postman Integration
  • ✔︎ Secure HTTPS Connections
  • ✔︎ Reliable Uptime

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.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble paying by card, just contact us at hello@zylalabs.com

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.

The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.

Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at hello@zylalabs.com

Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.

API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.

To check how many API calls you have left for the current month, refer to the ‘X-Zyla-API-Calls-Monthly-Remaining’ field in the response header. For example, if your plan allows 1000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

To see the maximum number of API requests your plan allows, check the ‘X-Zyla-RateLimit-Limit’ response header. For instance, if your plan includes 1000 requests per month, this header will display 1000.

The ‘X-Zyla-RateLimit-Reset’ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3600, it means 3600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at hello@zylalabs.com

To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it’s important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.

When you subscribe to an API trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.

 Service Level
100%
 Response Time
144ms

Category:


Related APIs