[2017-July-24] Map visualization in Power BI has drawn many data professionals into a field of сreating visual data stories with maps. If you are not actually looking for multiple routes then you probably should use the Routing API (Directions Manager)rather than Distance Matrix. Everything is explained in detail. You can then use the waypoint optimization function. A direction matrix API, such as Google Maps Directions API, provides turn-by-turn directions between two or more points. Step 2. 1. bingmapr is an R packge for retrieving and plotting maps from the Bing Static Maps API . The Bing Maps API delivers feature-driven tools with tons of perks. NET ","renderedFileInfo":null,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false. Bing Maps’ flexible geocoding API pricing gives every developer the tools to build the way they want to. Fill in the Show Distance In field by selecting whether the routes and direct distances in the Redistribution. Maps. Google Maps "Google Distance Matrix API" allows users to enter multiple start and end locations and request just the various travel distances and durations. Ask Question Asked 2 years, 11 months ago. Please note that the Distance Matrix parameters are plural, "Origins" and "Destinations". addHandler (directionsManager, 'directionsUpdated', directionsUpdated); function directionsUpdated (e) { //Get the current route index. Use the feedback button on the consumer site for questions related to that site. You can use the API to plan a sight-seeing trip, optimize delivery routes, compare transportation modes, or estimate travel costs. Bing Maps REST, SOAP, Spatial Data. Using the Bing Maps Distance Matrix API is easy enough, with GET or POST RESTful requests. For more information about the Location resource, see Location Data. Both the get and post examples fail with the following errors :. Step 4. 0. We have 10 customers on different location and we want meet them in next 3 days so we want to build the schedule for them based on location. All notable changes to this project will be documented in this file. Miles Taylor (UK) 1 Reputation point. This code loads the search module if it isn't already loaded, geocodes 'New York, NY', adds a pushpin to that location, and sets the map view over the result. Local Insights API. a tolerance value of 0. A Bing Maps session is created when you use one of the Bing Maps controls to show a map in your application. from pybaf import pybaf. Hello community, I tried to test the bingmaps Locations API within postman in order to get familiar with the API. The first integer in the string (1318005467000) represents the number of. The Bing Maps Multi-Itinerary Optimization API returns an itinerary schedule for one or more agents to travel between multiple itinerary items, e. hnakao11 hnakao11. Explore the Bing Maps V8 web map control using interactive code samples. Generate big distance matrix for scientific research. Using the Distance Matrix API for locations in Europe. Click the APIs drop-down and select the Routes API. Support for multiple modes of travel, including walking, driving, and public transportation, makes the API accessible for a wide range of users. 1 miles, while Google pitched 273 miles. Bing Maps API offers a feature-driven platform with free basic usage and enterprise options. location; distance; status; bing-maps. It supports different map views, e. More than 100 million people use GitHub to discover, fork, and contribute to over 330 million projects. The process follows this general flow: 1) Convert the employee's address to Lat-Long values using the GetLatLong function. 3. · Hi, Thanks for mentioning the Snap to. async Task<double> CalculateDistanceWithBingAPI (string from, string to, DataRow. using System; using System. Next, enter your API Key from the previous step. The Routes API is for calculating driving directions. 703+00:00. I tested it for the following zip codes: Origin = 76180 Destination = 75029 This API gives 19. Bing quoted 271. The GraphHopper Directions API includes a Matrix API. ; Supports calculating driving, truck, walking and transit routes that have more than 25 waypoints. Generate big distance matrix for scientific research. This is a Python script to calculate a distance matrix, i. You may want to take a look at Azure Maps, it does support truck based distance matrices as documented here. The Bing Maps route API supports calculations with real-time or predictive traffic data (estimated traffic). Area and distance conversions Calculate distance between two locations Calculate heading Calculate location of a destination Calculate location along a path Convert LocationRect to Polygon Generate a. Bing Maps REST, SOAP, Spatial Data Services. The Geocoding API will help us to get the coordinates. For example, I have two coordinates. 3. Using the Bing Maps Distance Matrix API, the electrician can view all the locations using the optional histogram to access travel times based on a time-window and predicted traffic to each location, to which the red location is actually closer to the office. The distances and times returned are based on the routes calculated by the Bing Maps Route API. After this I pasted the same URL into. Developed using the Bing Maps Distance Matrix API with predictive traffic and cutting-edge route optimization algorithms to minimize travel times and distances, the Multi-Itinerary Optimization API is an enterprise grade schedule optimization service for a wide range of industries and use cases, such as:Although bing distance calculation api is successfully returning distance for this same coordinates. The slight difference largely comes down to the way the maps have you navigate through the DC metro area. The Distance Matrix API is a routing component feature of our Bing Maps V8 Web Control. 2. Download the Google Maps workbook (button above) Amend Columns A,B,C in the VenueMaster workbook to your data. Contents-Function to call the Locations endpoint as explained before. - 100 elements per 10 seconds. Information of transportation AVAILABLE for the BING MAPS . {"payload":{"allShortcutsEnabled":false,"fileTree":{"examples":{"items":[{"name":"12G1. If you only want straight line distance, use a standard distance calculation. DAT","path":"examples/12G1. I teste this same location with API DISTANCE MATRIX with KEY, and no information retrieveThe Bing Maps Truck Routing API is a service that provides safe and efficient travel routes with respect to truck attributes such as size, weight and type of cargo, as well as road restrictions, traffic conditions, etc. Get the distance between two. Based on OSM data and very fast. This is the code snippet I am using:1. You need a Google API key to use their API1) or the GitHub mother source of the project. This NodeJS package allows you to interface with the Microsoft's official Bing Maps' Distance Matrix API. In this article. For straight line distances, the haversine formula will be used to generate a matrix based on as-the-crow-flies distance between the waypoints. CAMS Software Reduces Costs and Increases Efficiency By Using the Bing Maps Distance Matrix API. Calculate the geo-coordinates distance between two places in Excel Sheets. Is anyone have example where you used distance matrix api. You can store, access, and keep track of your store locations or other spatial data through our online data source management system. See the Distance Matrix API documentation for more information. . Learn how to use autosuggest, streetside, heat maps and much more. Note: We do not want to use Bing maps. I need to calculate distance between a set of origins and destinations like Bing Map Distance Matrix API, but in my case with Azure Map API. For questions about the Bing Maps API, a cloud mapping platform provided by Microsoft's Bing. I have all the locations of taxi drivers stored in web database. You can use the Bing Maps Distance Matrix API, in a many-to-many waypoint scenario, for enhanced route optimization along with the Truck Routing API. Provides an index for Bing Maps transit coverage through a list of links to Bing Maps API transit coverage for all continents. Define the bing_api with your Bing key. Raster Tile API is the successor to the Map Tile API and preserves its best. The number of different providers in the market is also very extensive, from Google to. The Azure Maps distance matrix API is comparable to the distance matrix API in Bing Maps: Post Route Matrix: Asynchronously calculates travel times and distances for a set of origins. Whether you’re creating marketing segments with geolocation or building a better supply chain with customized routing, Bing Maps API can help your business save time and money with smarter mapping. " So i assumed that the goal is to select two points on the map and then get the distance in a measure. The Bing Maps Routing Service allows you to pass in up to 25 waypoints into a single request. Security AADToken. Developers can use the Basic Key for building location intelligence -based apps with Bing Maps API for free. Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. Calculate distance between two locations. 1 While there's no direct replacement for the Bing Maps Snap to road service, this functionality can be implemented using the Azure Maps Route - Get Route Directions REST API. Introduction. Bing Maps Distance Matrix API Bing Maps Distance Matrix APINote: We do not want to use Bing maps Distance matrix because it is not in our bing maps license. One way is to utilize the code from Asynchronously Loading the API. You can find full API documentation for the Bing. Another way to calculate the distance between two addresses could be by making an API (Application Programming. Routes API builds on the foundational features of the Directions and. This resource provides the status of an asynchronous distance matrix request which includes an estimated amount of time left to process the request, the. ;. Provide a unified API for routing services. from pybaf import pybaf. You can find full API documentation for the Bing. Google maps has Distance Matrix API but it prohibits using it without showing the map (I do not need the map, If you know a possible solution for this, I will be able to use google-maps service) Fortunately, Bing maps allows calculating travel distance without showing the map! in the tutorial below:. To use the Bing Maps REST Services, you. Please note that the Distance Matrix parameters are plural, "Origins" and "Destinations". I want to display the distance in <samp id. Bing Maps Distance Matrix API Bing Maps Distance Matrix API Get started building powerful location-based applications and experiences with Microsoft’s Bing Maps Platform. Our Distance Matrix is a service designed to measure the relevant distance between any two objects on the map, and it also helps calculate the time of your travel between certain checkpoints. Hi I am using the Bing Maps Distance Matrix API. The Maps Dev Center provides the tools and resources you need to develop with Bing Maps. Set the view to “Aerial”, zoom in and press the “tilt” icon to put the city at a 3D viewing angle. Basically you're going to end up with a function in Power Query that takes your address, city, state and zip as variables. This example requests the distance matrix data between Washington, DC and New York City, NY, in JSON format: Try it! Test this request by entering the URL into your web browser - be sure to replace YOUR_API_KEY with your actual API key . Register the sample custom plug-in assembly on your Dynamics 365 (online) instance to be able to use the plug-in to use the Google Maps API instead of the default Bing Maps API. Output Parameters. Introduction. After Taras Comment: Looking for free web service that calculates driving distance between 2 addresses | Question is about driving time, not driving time based on desired arrival time per se. getElementById('myMap'), {. The distance matrix API only supports predictive traffic data, and only if you specify a start or end date, otherwise no traffic considerations is done. The various APIs offerings by Bing Maps, with Bing Maps Truck Routing API being one of them, enables our team to develop some of the most astounding features. Installation $ npm i --save bing-distance-matrix. With this key, any application can access all REST API. In the context of this project, distance matrices were necessary to have the costs - in terms of travel time and km distance - for any combination of two teams on. The response shows the distance and duration between the. Some of these samples where created to assist developers on the Bing Maps forums while many others where created for the Bing Maps blog, MSDN documentation and interactive SDK. Add this topic to your repo. 005 * 100 = $0. Licensing. Can be one of the following values: • driving - For detailed auto coverage please refer to “Road Data / Routing” section in the Bing Maps Geographic Coverage page. Learn how to use autosuggest, streetside, heat maps and much more. You will also receive important announcements around your Bing Maps account. This request will automatically use predictive traffic data to provide accurate estimates. Print GetDistance ("new york,ny", "miami,fl", "key"). For information about how to overlay routes on a static map using the Bing Maps REST Services. 0 1. Features. g. Here's a basic example of the Distance Matrix API:Route matrix methods use what is called multi-destination path search. Getting a Bing Maps Key - Bing Maps | Microsoft Learn. Using the Bing Maps Distance Matrix API, the electrician can view all the locations using the optional histogram to access travel times based on a time-window and predicted traffic to each location, to which the red location is actually closer to the office. Google Maps Platform web services; Directions API; Distance Matrix API; Elevation API; Geocoding API; Geolocation API; Time Zone API; Roads API; Places API; Maps Static API; Support. This is because Bing Maps does not have the limitation in the number. The example was taken "as is" from their website (here). - 100 000 elements per 24 hour period. Using the Alteryx distance tool, you get the straight line distance instead of the drive route. So in the provided example, you'd be billed 0. Truck routing based Distance Matricies - The Bing Maps distance matric API does not support truck routing based. Elevation API Map Tiles API Maps Datasets API (Preview) Web Components (Preview) Routes Routes API Roads API Directions API Distance Matrix API Solutions Industry solutions Mobility services Places Places API Places SDK for Android Places SDK for iOS Places Library, Maps JavaScript APICalculate a distance matrix. GEO LOC A: 1. Bing Maps MIO API Custom distance/time matrix. Global building footprints datasets. travelMode: Required. Bing Maps provides: Full Logistics and Fleet Management services including. So, a 50x50 matrix would have 2,500 cells, and thus use 625 transactions. Using Excel to calculate distance & travel time between two points – Bing Maps API. In the Cloud Console, open the Google Maps Platform Quotas page. Destination: -34. Find Bing Maps API transit coverage in the topics below. . g. Bing Maps Keys. Google Maps "Google Distance Matrix API" allows users to enter multiple start and end locations and request just the various travel distances and durations. Information of transportation AVAILABLE for the BING MAPS . You can create driving or. Specifies the mode of transportation to use when calculating the distance matrix. To use this package and the underlying API, you need to first obtain an API Key for Bing Maps. Any method I have tried using various cURL methods and unirest have been unsuccessful. Serving millions of travelers every year, China Mobile International is leveraging Bing Maps APIs to create a single app for anything a traveler might need. Open the Windows Map application. In particular, the google_directions() function will give you driving distances, directions, routes, legs, steps etc. Times are based on predictive traffic information, depending on the start time specified in the request. Maximize efficiency by calculating travel time and distances in various scenarios leveraging travel time map features in Bing Maps API. Before using Google's Distance Matrix, we need to tap into the Google Maps API. Now there are two questions : Can we use calculated data using GOOGLE Matrix API in. A session begins with the load of the Bing Maps Web Control into a user’s browser and ends when the browser is closed or the user moves to a different page. Features. This will work for any point. Support calculating the travel distance matrix between multiple origins and destinations. Show 4 more. . Once you have an account there is the option My account -> My Keys. Next it passes the Student Address, the College Address, the desired Distance Unit** and the Bing Maps API Key to the Bing Maps REST web service. This browser is no longer supported. . How would I use Bing Map API in my python program to generate a string of directions? It is kind of like this: longitude = -122. Bing Maps does not expose a distance Matrix API, however it is possible to generate the required data using the Bing Maps Routing Service. Introduction The Distance Matrix API allows you to generate travel time and distances (with the help of the Bing Maps Route API) for a given set of origins and. Azure Maps supports calculating distance matrices for the following travel modes: bicycle. Easily develop with Bing Maps using JavaScript or TypeScript. Before using Google's Distance Matrix, we need to tap into the Google Maps API. Both the get and post examples fail with the following errors :. 2,500 elements per 24 hour period. Score the attractiveness of a location based on the proximity to points of interest, making it easy for you to determine how close people are to things that are important to them. Community1 Answer. 00001 represents a distance of about one (1) meter in the north-south direction. Discover a mapping development platform that empowers your enterprise with intelligent, location-enabled, and map-based navigation for your real-world needs. Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. Explore the Bing Maps V8 web map control using interactive code samples. Using the Bing Maps Distance Matrix API, you can calculate a route using traffic data to determine a distance matrix based on travel time or distance for many. It's possible? javascript; azure-maps; Share. This is because Bing Maps does not have the limitation in the number of transit legs, and the total walking distance used when calculating a route in Bing Maps is generally up to 1. Download 99. Basically $5 to $10 USD for every 1,000 calls to the API. Batch geocode data, access administrative boundaries, and expose your data as a spatial REST services. Bing maps API: Is there a way to use truck routing for distance matrix? 0. There are no immediate plans to add these features to the package. This feature is particularly useful for site selection and location strategy as standard road maps might not reflect the current status of a location. Our Isochrone API delivers optimal routes and travel radius maps for any mode of transportation. Get distance (in km) from a location to many other locations. You can use the API to plan a sight-seeing trip, optimize delivery routes, compare transportation modes, or estimate travel costs. Distance Matrix Asynchronous Example Article 07/20/2022 3 contributors Feedback In this article Status Request Downloaded Results See Also This example. My suspicion is the cost of the matrix API will prove worthwhile as it will save you effort and time. . TravelTime is the only API to charge on bespoke requests per minute – not PAYG, not monthly or annual usage limits, and no overage. Click the APIs drop-down and select the Distance Matrix API. Bing Map API - Calculate distance using two address. Click on the APIs & Services menu item in the top left navigation bar -> Enable APIs and Services -> Credentials -> Create Credentials -> API Key -> Copy the API key. Driving routes can include traffic information. So, a 50x50 matrix would have 2,500 cells, and thus use 625 transactions. You need to add an event to the directions manager since the route calculation is done asynchronously. The distance matrix API only supports predictive traffic data, and only if you specify a start or end date, otherwise no traffic considerations is done. A fun and easy way to learn how to use the Bing Maps V8, Microsoft’s modern web mapping SDK. For example we have 10 records then we want travel time and distance between each point. To use the Bing Maps REST. 1 Answer. JSON. Comes with a JS demo and a Java client . When travel time/distance is specified, the distance matrix API which will generate Bing Maps transactions. Example: Adelaide. Distance Matrix is not designed for a single origin and destination pair but rather a matrix of coordinates so you need at least four(4) lat lon pairs for the smallest call. You can also type any location name in the search dialog to find interesting places. For more information about the common response syntax for the Bing Maps REST Services, see Common Response Description. Use the distance matrix API as it was developed to solve this issue for you. 671997. 4. It includes information such as the distance, estimated travel time, and the route to. [2017-July-24] Map visualization in Power BI has drawn many data professionals into a field of сreating visual data stories with maps. In each response, a maximum of 200 total. I have no result on DISTANCE MATRIX APIfor CHINA on BING API . Adopting multiple Bing Maps APIs, the app incorporates a live COVID-19 map tracker, travel safety. map = new Microsoft. The Distance Matrix API is unfortunately NOT free. Your call above only shows one start and one destination which is not actually a matrix but rather just a single route. You can use it to compute optimal travel time and distances from all origins to destinations at scale, and then combing with optimization algorithms find the best stops for each driver to make. (j) "Premium Services" means the Bing Maps Distance Matrix API, Bing Maps Isochrone API, Bing Maps Snap to Road API, Bing Maps Truck Routing API, and Bing Maps Multi-Itinerary Optimization API. I tested it for the following zip codes: Origin = 76180 Destination = 75029 This API gives 19. In Bing Maps, every 4 cells in a matrix (origin/destination pair) generates 1 transaction. We have shown how you can geocode and reverse geocode locations using the Locations API, generate customized static maps using the Imagery API, and create routes using the Routes API. Note that Google prohibits the use of this API if you are not using it with a Google Map somewhere on the page. You should be using the Routes API for a single route with two (2) waypoints. Step 3. 1 miles, while Google pitched 273 miles. The response from the. vrp. Geocode and sort address lists by distance to a list of targets. So, you don't need to worry about a surprise bill appearing in this case. “Bing Maps services offer us a great platform to come up with distinct mapping features for our Dynamics 365 CRM audience and deliver them optimized services day in, day out. Easy to visualize the routing results. Developers can edit the code samples to make map integration with their apps incredibly easy. 55 miles (2. Feedback. Hi, I'm on a Basic Education license for the Bing Maps REST services, and I'm using the Distance Matrix API (. Viewed 212 times Part of PHP Collective 1 Is there any way to calculate distance/miles between two address field and display it in HTML. When paired with Azure role-based access control it can be used to control access to Azure Maps REST APIs. To change a quota limit, click the Edit icon for that limit. Way Point A geographical location defined by longitude and latitude used. More complex queries use asynchronous requests, though they only support driving with a start time. com webpage. You are using Distance matrix for a set of two points. Bing Maps doesn't have a batch service for getting routing distance/times, however, you can use the REST routing service to make multiple calls to do this. 2. More information: Register and deploy your custom plug-in. 547163, 110. Based on OSM data and very fast. Calculate a Distance Matrix - Bing Maps | Microsoft Learn. Bing maps, google maps, HERE maps, and arcgis are recommended. The Bing Maps Dev Center provides the tools and resources you need to develop with Bing Maps. Fast indexed lookups of Distance Matrix results. In each response, a maximum of 200 total. Hit one of the buttons on that page to geocode (with Google, Bing, yahoo , create a KML file or plot the addresses on a map using Google, Yahoo, Bing or OVI. Google writes the following under Usage Limits: Users of the free API: 100 elements per query. This type of API is useful for applications that need to display distance-related data on a map, such as a fitness tracker or a travel app. Now, let's take a look at retrieving the latitude and longitude of the address. Archived Forums 101-120 > Bing Maps REST, SOAP, Spatial Data ServicesElevation API Map Tiles API Maps Datasets API (Preview) Web Components (Preview) Routes Routes API Roads API Directions API Distance Matrix API Solutions Industry solutions Mobility services Places Places API Places SDK for Android Places SDK for iOS Places Library, Maps JavaScript APIRaster Tile API is a RESTful web service that allows to request map tile images with predefined styles for all regions in the world. You can also pass in up to 25 points on your route to calculate a multiple stop route in a single request. We are currently using Google Maps API for maps (Places API, Geocoding API, Directions API & Distance Matrix API). To view the quota limits, scroll down to the Requests card. When set to true the HTTP Status returned is 200 OK for all. getRequestOptions. One optimization you can make to speed things up is to use multiple waypoints in a single request. The request/query looks like this. Responses are shown for both XML and JSON formats. Insert the Bing Map. This uses the more generic "query" approach from the Bing Maps API to search for a results like "1600 North Airport Freeway Irving TX". It relies on the Bing Maps API to get these distances. - 2500 elements per 24 hour period. Azure Maps provides an API for calculating the travel times and distances between a set of locations as a distance matrix. The Bing Maps API delivers feature-driven tools with tons of perks. How to improve track presentation via OSM together with distance?I get longitude and latitude using gmail geocode function. The Routes API allows you to get route distance calculations, route geometry and step-by-step directions via driving, walking or traffic based algorithms. North America. So, you could in theory run request a 50x50. Usage. You should be using the Routes API for a single route with two (2) waypoints. Businesses should evaluate the accuracy of the data provided by the API. Distance Matrix Example. For driving, walking and public transit, Bing Maps has a Distance Matrix REST API similar to the Google Maps offerings that can create fleet delivery schedules and ‘travelling salesperson’ routes with histograms of travel times based on traffic predictions, optimising vehicle capacity and split deliveries. What can I do to get a useful response? I submitted the following request URL:. 31,326687, 121,439011 . August 3, 2022. Here is an example: Microsoft. Europe. China Mobile International caters to the needs of the millions of Chinese citizens who travel internationally each year. The API was just released at Microsoft Ignite in October and allows you to generate travel time and distances (with the help of the. The GraphHopper Directions API includes a Matrix API. 100 elements per 10 seconds. Download 99. 1 miles (5. Step 4. Distance Matrix API. These samples have been collected from a number of different sources. The button is hard to miss because it looks like the Bing logo. Bing Maps API uses high-res location data. The various APIs offerings by Bing Maps, with Bing Maps Truck Routing API being one of them, enables our team to develop some of the most astounding features. Microsoft. , between multiple delivery locations. The part of interest here is the Source-step. The. 1. Calculate straight line distance for a matrix or list of zip codes. Google writes the following under Usage Limits: Users of the free API: 100 elements per query. 2) Convert the employee's work address to Lat-Long values using the. Another way to calculate the distance between two addresses could be by making an API (Application Programming Interface) link and using it to create a User Defined function by VBA. This library adds support for this by wrapping the truck routing API. The output format for the response. Geographic Access Analysis Microsoft Excel Template. This resource provides the status of an asynchronous distance matrix request which includes an estimated amount of time left to process the request, the unique requestId to use when checking the status, as well as information on if the request was had any errors or not. The distance represented by a degree of. We are currently using Google Maps API for maps (Places API, Geocoding API, Directions API & Distance Matrix API). Routes API. Using VBA to Calculate Distance Between Two Addresses in Excel. The Bing Maps Distance Matrix API shields you from the complexity of this problem and helps solve it for you with ease. Use a Microsoft Excel template to calculate driving (travel) time and distance for an array of locations. pybaf = pybaf(key = 'key') You need to define two dataframes that contain latitude and longitude and their IDs to calculate a Distance Matrix. The Azure Maps distance matrix API is comparable to the distance matrix API in Bing Maps: Post Route Matrix: Asynchronously calculates travel times and distances for a set of origins and. Check the full description to find both links for payment in inr at stripe or usd at paypal all links are there:Buy the full source code of the application a. This interactive SDK provides a number of useful editable code samples that demonstrate how to use the various features of the Bing Maps V8 SDK. For travel mode driving a distance matrix that has up to 2,500 origins-destinations pairs can be requested for Basic Bing Maps accounts, while for. 829 miles while google map shows 25. Google estimates the drive will take four hours and 57 minutes in “heavy traffic. Some of the other features include, but are. Fill out the form and click “Create” and get your API key details. Bing Maps for Enterprise has many valuable REST services for location-aware applications, like routing , geocoding addresses, calculating an isochrone, and many more. 0 web control, is started with a valid Bing Maps Key, one (1) transaction is counted. Elevation API Map Tiles API Maps Datasets API (Preview) Web Components (Preview) Routes Routes API Roads API Directions API Distance Matrix API Solutions Industry solutions Mobility services Places Places API Places SDK for Android Places SDK for iOS Places Library, Maps JavaScript API Calculate a distance matrix. We would like to show you a description here but the site won’t allow us. The Distance Matrix API allows you to optimize the number of vehicles required, their capacity and routes, and also plan additional possible supermarket or bakery locations. This API returns the recommended route(not detailed) between origin and destination, which consists of duration and distance values for each pair. Bing Maps REST, SOAP, Spatial Data Services.