bing maps distance matrix api example. 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. bing maps distance matrix api example

 
 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 onbing maps distance matrix api example  But there isn't a sample for Multi-Itinerary Route Optimization (MIO), and I have been unable to find anything on the web

The Distance Matrix API is an excellent tool for solving vehicle routing problems that involve calculating distances and travel times for multiple sets of locations. 48. You can specify up to 25 waypoints for a route. Learn how to use autosuggest, streetside, heat maps and much more. In this scenario you will see a driving. 410586 GEO LOC B: 1. 0 web control, is started with a valid Bing Maps Key, one (1) transaction is counted. NOTE: I didn't put in any error handling so y. · The distance matrix API doesn't do any. The query has one destination and multiple origins, the travelMode is set to 'driving' and the units requested are 'second' and 'km'. Each Distance Matrix API call generates a number of elements (the number of origins times the number of destinations, e. JSON. For example, given three locations A, B, and C, the Matrix API will return a matrix of all travel times in seconds between the locations: The Matrix API will always return the duration or the distance on the fastest route for each element in the matrix, where an element is an. Distance Matrix API. Monitor your created job’s status. The Distance Matrix API is unfortunately NOT free. Use the Routes API to create a route that includes two or more locations and to create routes from major roads. For information about the different types of keys, see Create a Bing Maps Key. The Bing™ Maps REST Services Application Programming Interface (API) provides a Representational State Transfer (REST) interface to perform tasks such as creating a static map with pushpins, geocoding an address, retrieving imagery metadata, or creating a route. Sample request and response. Contents-Function to call the Locations endpoint as explained before. Routes API. This example returns a simple distance matrix between a set of origins and. NET wrapper around these services. The company’s flagship transportation management solution, Prospero, is used by the majority of major grocery chains in North America, including industry giants. You need to pass to and from locations as lower case along with , 2 letter abbr for state. getRequestOptions. Here’s how the borderRestriction parameter is used to. Then click 'Save & Continue'. Click on the “3D cities” list found under the “…” menu in the upper right. 100 elements per 10 seconds. Additionally, calculation of directions generates copyrights and warnings which must be displayed to the user in some fashion. Distance Matrix API – Calculate travel times and distance in many-to-many scenarios, with an optional histogram to predict traffic. To use this API, you must have a Bing Maps Key. The. I will be able to use google-maps service) Fortunately, Bing maps allows calculating travel distance without showing the map! in the tutorial. Step 1: Create API Key from Map. Microsoft have been busy, working hard on the Bing Maps v8 Web Control and adding rich new functionality. To use this API, you must: Format your location data using the Data Schema v2. The API returns different types of entities as specified by the string type IDs; these types can be found on the Type Identifiers page. Azure Maps supports calculating distance matrices for the following travel modes: bicycle. 2. As you can see from the following codes, the results getting from Google’s Distance Matrix API is comparable to the ones from OSRM API. The problem is that the Distance Matrix API returns different values compared to the actual value as per the Bing Maps website. 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. More complex queries use asynchronous requests, though they only support driving with a start time. You will also get an automatic email with all the necessary information on how to start. More than 100 million people use GitHub to discover, fork, and contribute to over 330 million projects. The Bing Map V8 provides a Search, Direction and Traffic modules which wraps several of. Directions. The interactive SDK is a fun and engaging way to learn about one of Bing Maps’ most powerful APIs. . Maps. Feedback. This video is extremely useful for a Supply. Now I would like to know the distance from a user specified point to those markes stored in the table. Simple example showing DistanceMatrix calculations using Bing Maps API. Start building a better solution today, create a Bing Maps API key for free to get started or contact us to learn. 0 or Data Schema v1. Step 2. Maps. Given a request with a user’s location and a partial query (called a query prefix ), the Bing Maps Autosuggest API returns a list of suggested entities which the user is most likely searching for. On Chrome and Edge, also Chrome on Mac. You can also type any location name in the search dialog to find interesting places. Bing Maps’ Truck Routing API matches road limitations to your fleet’s particular requirements to help create routes free of delays, reroutes and obstructions. For a distance matrix that provides a histogram, the API allows up to a total of 100 origin-destination pairs. Explore the Bing Maps V8 web map control using interactive code samples. For a breakdown of the API by feature and platform, see Choose Your API on the Bing Maps Platform website. 3. Request route details, like time and distance, for the entire route and each. When travel time/distance is specified, the distance matrix API which will generate. 297539 , 76. Maps Embed API Maps Static API. Support for multiple modes of travel, including walking, driving, and public transportation, makes the API accessible for a wide range of users. Are these 2,500 elements per phone or do all phones with my app share the. Answers text/html 6/4/2018 4:51:01 PM Ricky_Brundritt 1. The asynchronous responses are stored for 14 days. bingmapr. maps. To learn more, see Set up in Cloud Console . You could make a. Explore the Bing Maps V8 web map control using interactive code samples. Thanks! Balasaheb. Using Google Maps Distance Matrix API on Excel with less API calls. This example returns a simple driving based distance matrix for the set of origins and destinations for a specified time, June 15 th, 2017 at 1PM PST. Step 3. . g. 670521. The. Three things. The Routes API is for calculating driving directions. Post Route Matrix: Asynchronously calculates travel times and distances for a set of origins and. Let’s say you have the api key in a cell named bingmaps. 8 Km. Travelling Salesmen algorithms that tie into the distance matrix API documentation. For information about how to overlay routes on a static map using the Bing Maps REST Services. 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 destinations. The Bing Maps free limits is 125,000 transactions a year. 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. 00207,25. A directions API finds the best possible route, based on distance or ETA, between any two given points — and then draws that route. As we already know, a distance matrix API computes distances and ETAs between any given set of origins and destinations. Access geocoding, routing, isochrone, static imagery services and more. If this parameter is not present, or false, the response will contain a one-dimensional list of times/distances from the first location to each location. Request historic and predicted travel times, based on real-time and historical traffic data. If you have a licensing question or want to request a quote, contact the Bing Maps. In this use case, the company has set the device to collect GPS data every minute along the route. You can also overlay routes on map imagery. License: MIT Author: Bharadwaj Yarlagadda Tags bingmaps, bingmaps REST services, bingmaps API services, bingmaps location API services, bingmaps elevations API services, bingmaps traffic incidents API servicesWalking Route Example. Asynchronous Requests. Both the get and post examples fail with the following errors :. Walking Route Example Transit Route Example Driving Route with Route Path Example Driving Route using Tolerances Example Bing Maps Transit Coverage. 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. 1 Answer. [2017-July-24] Map visualization in Power BI has drawn many data professionals into a field of сreating visual data stories with maps. As far as I have been able to find, these do not allow for specifying the 'desired arrival. 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. Hi, I've been using the distance matrix API successfully for a few days, but I've just had a query that returns negative distances and times for all pairs. 005 * 100 = $0. travelMode: Required. . If you only want straight line distance, use a standard distance calculation. Driving routes can include traffic information. In this example, the cities specified are Delhi and Mumbai. A Distance Matrix Advanced SKU is charged for a Distance Matrix API or a Maps JavaScript API’s Distance Matrix Service that uses one or more of the following: Traffic information. Using predicted traffic and support for various modes of transportation, the Distance Matrix API can optimize map routing performance in many-to-many scenarios, which can save time, increase ROI, and. 這篇文章介紹的內容,主要參考了Distance Matrix Service的線上API文件,Google寫得十分詳細,想做更深入的應用可以仔細閱讀,另外Google在Udacity有提供免費的Google Map API課程,內容有趣又有許多實際範例,上完真的可以運用Google Map API玩出很多很厲害的功能,有興趣的人可以參考看看。API v0. DistanceMatrixRequest extracted from open source projects. Bing Maps REST, SOAP, Spatial Data Services. Is your issue with the Bing Maps distance matrix service or Google Maps? – rbrundritt. For example, using the Bing Maps V8 Web Control to show a map on a web page or geocoding an address using the Bing Maps REST. 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. Search for jobs related to Bing maps distance matrix api example or hire on the world's largest freelancing marketplace with 22m+ jobs. I would like to let the user draw on the map, but all it seems to do is drag (pan) instead. For example, if your request specifies A and B as origins, and C and D as. I am trying to calculate the distance between individual coordinates on a route. That is, if you are really using it in combination google maps. Hi! I have been trying to test the Bing Maps Distance Matrix method to retrieve a set of travel times from a single start point to 2 end points. Hi, We want to get the travel time and distance between locations and create matrix. and postalCode. The departure time in which this cell was calculated for. Using the Distance Matrix. Explore the Bing Maps V8 web map control using interactive code samples. Map(. Compare prices and usage limits from various Distance Matrix API providers, including Google, Mapbox and TravelTime in order to. {"payload":{"allShortcutsEnabled":false,"fileTree":{"BingMaps/rest-services/routes":{"items":[{"name":"calculate-a-distance-matrix. vrp. Developed using the Bing Maps Distance Matrix API with predictive traffic and cutting-edge optimization algorithms to minimize the total travel distance or time, the Multi-Itinerary Optimization API is an enterprise grade schedule optimization service for a wide range of industries and use cases, such as: • Retail, Wholesale and Distribution1 Answer. GEO LOC A: 1. Place Photos API – Place photos are considered a separate product, and can be billed separately than place details. Fortunately, even after the free trial expires, you. 'Import Distance & Time'. Licensing. We can also use googlemaps library and Google’s Distance Matrix API to obtain the similar information. All APIs require a Bing Maps Key. Contents() function to make it easier to build. The distance is returned in meters and the time in seconds. I know that Power BI does it's mapping via Bing Maps so I am hoping their is a way to take advantage of Bing Maps' more robust functionality in BI. Hi, I've been using the distance matrix API successfully for a few days, but I've just had a query that returns negative distances and times for all pairs. Get the travel distance and time for a matrix of origins and destinations. . Each row item contains elements array where each element corresponds to one destination from destinations parameter in request and also. You can also pass in up to 25 points on your route to calculate a multiple stop route in a single request. Distance Matrix. Plug-in sample code for msdyn_GeocodeAddress actionSearch for jobs related to Bing distance matrix api example or hire on the world's largest freelancing marketplace with 22m+ jobs. 9 miles away. 1099624633789) }); Additional details. A dynamically generated matrix that uses the Google Distance Matrix API and also generate map images using the Static Map. See moreDistance Matrix Example. Azure Maps provides the distance matrix API. The response seems to indicate success (status code is. JavaScript API. Please can you confirm the correct usage of the originIndex and destinationIndex distance matrix cell fields. It is even more performant than the existing Directions and Distance Matrix APIs, and provides features that allow you to make tradeoffs between comprehensive accuracy and reduced latency. Bing Maps Fleet and Logistics API Solutions From personalized experiences to advanced scenarios in the logistics sector, Bing Maps has you covered. For example, I have two coordinates. Select an existing project or create a new one to add an API key to. To change a quota limit, click the Edit icon for that limit. Example code here:. Microsoft already has Bing Maps and there are many solutions on AppSource which integrate Bing Maps in a number of ways. For example, shortest distance, shortest time, shortest time with traffic. Step one sets things up, giving the origin and destination locations, setting the travel mode to DRIVING and the measurement system to METRIC. Refer to the Locations documentation on how to properly form locations in all formats. 1 Answer. Creating a Bing Maps key . When you use any Bing Maps API with a Bing Maps Key (you must have a Bing Maps Account), transactions are recorded. 365. addHandler(directionsManager, 'directionsUpdated', directionsUpdated); function directionsUpdated(e) { //Get the current. So in the provided example, you'd be billed 0. November 28, 2022. See the Distance Matrix API documentation for more information. I'm failing to get the Bing Maps API working. I am developing web application on MVC, I have a requirement to automatically find the distance between two locations using the pin code. 1. Geocoding is an innovative solution to get geographic coordinates from an address. 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. The VBA code for Bing is in @MARK858's post which I posted a direct link to. This powerful API automates itinerary building for up to 200 agents and 2000 waypoints at a time, while also including key features like predictive traffic, customizable parameters, and support for multiple shifts. Sign in to the Bing Maps Dev Center with your Microsoft Account. The data schema and input data are provided together when you create a LoadDataSource job to create or update a data source. We have multiple records say suppose 200 and we want the travel time and travel distance between these locations. It only takes a dataset of Geo located data points to do this and everything else is managed by map visual controls plus one's imagination. In this article. Quick access. g. So, you don't need to worry about a surprise bill appearing in this case. location;. RoadsThe information provided in the Route resource includes the route distance, the travel time, and the itinerary details for each route leg. His code is 2 UDF's (GetDistance and GetTimeinMins) which can be called as worksheet functions, for example =GetDistance("T2P 4R5", "M9N 1K9. 005 * 100 = $0. Enter a Name for your request, e. Google Maps Platform web services are an interface for requesting Maps API data from external services and using the data within your Maps applications. Maximize efficiency by calculating travel time and distances in various scenarios leveraging travel time map features in Bing Maps API. Maximize efficiency by calculating travel time and distances in various scenarios leveraging travel time map features in Bing Maps API. JavaScript - Popular. Sample request and response. Compare prices and usage limits from various Distance Matrix API providers, including Google, Mapbox and TravelTime in order to select the best. Bing Maps REST, SOAP, Spatial Data Services. pybaf = pybaf(key = 'key') You need to define two dataframes that contain latitude and longitude and their IDs to calculate a Distance Matrix. Bing Maps General{"payload":{"allShortcutsEnabled":false,"fileTree":{"BingMaps/rest-services/routes":{"items":[{"name":"calculate-a-distance-matrix. Run Sample. Google maps has Distance Matrix API but it prohibits using it without showing the map. LatLngBounds(); const markersArray: google. To use the Bing Maps REST Services, you. 3. This video is extremely. Read the documentation. It includes information such as the distance, estimated travel time, and the route to. Looking at the locations on the map in Figure 1, the purple location is the. Let’s see how you can use the Distance Matrix API to choose the closest repair technician. We only need the coordinates (longitude and latitude) from our stores and the drivetime in seconds (15 x 60 = 900 sec). Everything is explained in detail. Quick access. Google Directions API Optional Parameters Apart from the required parameters we discussed above, the Distance Matrix API gives us a wide range of optional parameters to add to our request to modify the response we need accordingly. I thought of using the Distance Matrix for this. Azure Maps supports calculating distance matrices for the following travel modes: bicycle. Bing Maps’ Truck Routing API matches road limitations to your fleet’s particular requirements to help create routes free of delays, reroutes and obstructions. – geocodezip. The distances and times returned aGoogle API for distance doesn't consider traffic when calculate time duration between two points 1 Get travel time between two addresses using The Google Maps Distance Matrix APIAPI Keys. So, I started using the google map distance matrix API as below:The Distance Matrix API web service returns results as rows array where each row item corresponds to one origin from origins parameter in request and the order is preserved as in the original request. See the Distance Matrix API documentation for more information. Maps. chris hutchinson. After the registration, you will get instant access to the admin panel, where you will find up to five free tokens for your apps. Navigate to the APIs & Services > Credentials page. Examples: distanceBeforeFirstTurn=500:. In this article. It is possible to generate a distance. Please note that the Distance Matrix parameters are plural, "Origins" and "Destinations". Classic maps client. API trả về thông tin dựa trên tuyến đường được đề xuất giữa điểm xuất phát và điểm cuối, được tính toán. - 100 elements per 10 seconds. You should be using the Routes API for a single route with two (2) waypoints. How does Distance Matrix API deal with this? For example - 1 start point is in PST and another start time is in EST. Fleet tracking and multi-route planning are helping logistics providers avoid. Performance optimized version of the Directions API and Distance Matrix API, with additional features. The culture parameter provides the following strings in the language of the culture for: Geographic entities and place names returned by the Bing Maps REST Services. Several of the Bing Maps REST APIs, such as truck routing, distance matrix, and isochrones, support asynchronous requests for queries that may take more than a few. Development tools like the Test Data Generator create a sandbox for devs, encouraging experimentation and creativity. Bing Distance Matrix - A NodeJS package for accessing the official Bing Distance Matrix API For more information about how to use this package see README. 3. JavaScript. Here's a basic example of the Distance Matrix API: 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. Thanks! So I’ll show you how to calculate the distance between two addresses or coordinates using the free API key from Bing Map. Bing Maps REST, SOAP, Spatial Data Services. Explore the Bing Maps V8 web map control using interactive code samples. Two POJO classes for converting the JSON responses to Gson from the Google places API and Distance Matrix API. You could use the Microsoft Bing Maps API (you must create an API key and specify it in the request). Now there are two questions : Can we use calculated data using GOOGLE Matrix API in. 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. A part of the URL path that identifies the REST API. The units to use for distance in the response. Area and distance conversions Calculate distance between two locations Calculate heading. Bing Maps REST, SOAP, Spatial Data Services. The Bing Maps Distance Matrix API calculates distances and travel times between origins and destinations with an optional travel-time histogram. If you need distances from A to B, C, D you could calculate a route from A-B-A-C-A-D. 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. 2) Convert the employee's work address to Lat-Long values using the. . To change a quota limit, click the Edit icon for that limit. 671997. DistanceMatrix DistanceMatrixRequest - 16 examples found. For example we have 10 records then we want travel time and distance between each point. Only returned when a startTime is specified. Once opened the file, click “Enable Editing” in the highlighted yellow bar on the top, when the file is opened under the protected view (Pic. How to send hundred of requests to distance matrix API? Archived Forums > Bing Maps REST, SOAP, Spatial Data Services. Fast indexed lookups of Distance Matrix results. md","path":"BingMaps/rest-services. Play with Static Maps API input parameters, get an URL link for a map picture with markers. For more information about the common response syntax for the Bing Maps REST Services, see Common Response Description. 442km. 1 Answer. Google Maps Distance. See Also ; Using the REST Services with . For a distance matrix that provides a histogram, the API allows up to a total of 100 origin-destination pairs. Unfortunately for the Distance Matrix API, Google strictly says you NEED to display the map in your application: Use of the Distance Matrix API must relate to the display of information on a Google Map; for example, to determine origin-destination pairs that fall within a specific driving time from one another, before requesting and displaying. 1. Synchronous Distance Matrix. Google maps has Distance Matrix API but it prohibits using it without showing the map Yes. The. Whether that be delivery drivers, sales representatives, or consulting professionals, the MIO API can. The Routes API is a service that accepts an HTTPS request and returns either the ideal route between two locations, or distances and travel times for a matrix of routes between different origin and destination locations. Here is an example: Microsoft. API keys are generated in the 'Credentials' page of the 'APIs & Services' tab of Google Cloud console. A typical Distance Matrix API request is generally of the following form:. Click OK. We do not want to use bing map distance matrix api. " GitHub is where people build software. In April 2013 after the addition of the Map Notes API. As you might have noticed I am using the RelativePath and Query options of the Web. 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. NET ","renderedFileInfo":null,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false. Pinpoint accuracy, every time. API trả về thông tin dựa trên tuyến đường được đề xuất giữa điểm xuất phát và điểm cuối, được tính toán. bus. But there isn't a sample for Multi-Itinerary Route Optimization (MIO), and I have been unable to find anything on the web. . Check out the geospatial API services and solutions for enhanced fleet management, routing, vehicle tracking and more. This distance matrix example returns a simple distance matrix between a set of origins and destinations. Whether it’s to and from distance calculations or itinerary optimization, Bing Maps API helps businesses solve everyday problems with actionable business insight. When the response data is returned, you must serialize the data against a set of data contracts. To set up the example and compute the. Distancematrix. 2,500 elements per 24 hour period. Thanks! Balasaheb. 1 000 elements per 10 seconds. You could make a request for each distance but this would be slow and generate a lot of transactions. With that constraint in mind, examples of. Most requests can be made with a simple synchronous GET or POST request. Choose from a variety of profiles and set up to 50 waypoints to plan your route. Truck routing based Distance Matricies - The Bing Maps distance matric API does not support truck routing based. When you’re ready, create your Maps API key to get started today, or contact sales for licensing support. We have multiple records say suppose 200 and we want the travel time and travel distance between these locations. 5 per call to the Distance Matrix API. The response is then stored in 2 variables TravelDistance & TravelDuration. Calculate Directions. ; Truck routing based Distance Matricies - The Bing Maps distance matric API does not support truck routing based matricies. Bing Maps REST, SOAP, Spatial Data Services. Note: the Directions API may only be used in conjunction with displaying results on a Google map; using Directions data without displaying a map for which directions data was requested is prohibited. Maps. This example returns a simple driving based distance matrix for the set of origins and destinations for a specified time, June 15 th, 2017 at 1PM PST. For example, I have two coordinates. Create optimized routes for multiple addresses and minimize map route distance with a Bing Maps API key! A powerful addition to the Bing Maps routing API is now available! With waypoint optimization you can pass in up to 25 waypoints (stops) and they will be re-ordered and optimized to minimize travel time or distance. Bing Maps. How to send hundred of requests to distance matrix API? Archived Forums 101-120 > Bing Maps REST, SOAP, Spatial Data Services. A table lists the quota names and limits. {"payload":{"allShortcutsEnabled":false,"fileTree":{"BingMaps/rest-services/routes":{"items":[{"name":"calculate-a-distance-matrix. Add the following code to your map. Bing Maps does not provide travelling salesmen type route optimization. Save up to 90% on your distance matrix API cost. · Ok, the first location is out in the middle of a field. Google writes the following under Usage Limits: Users of the free API: 100 elements per query. Siirry pääsisältöön. The Bing Maps Distance Matrix API can help your users determine the best route possible by reordering stops based on the trip’s parameters, including time or distance, mode of transportation (driving, walking, or public transit), start and. Transactions track API usage and can be billable or non-billable. Note: We do not want to use Bing maps. HTML. Click the APIs drop-down and select the Distance Matrix API. The problem is that the Distance Matrix API returns different values compared to the actual value as per the Bing Maps website. Maps Address Entry and Organization Search Routes and Navigation Geolocation. According to the Bing Maps documentation, only the following travel modes are supported: driving (car) walking. Please can you confirm the correct usage of the originIndex and destinationIndex distance matrix cell fields. co. In this scenario you will see a driving route drawn on the map with turn by turn instructions displayed in the printout panel. Distance Matrix API – Calculate travel times and distance in many-to-many. Fleet managers can create efficient routes and automate manual processes with this sophisticated API. This API helps you remain more contextually aware of the environment around you, with information such as the full names of roads and their associated speed limit maps. We have multiple records say suppose 200 and we want the travel time and travel distance between these locations. The limits to Google Distance Matrix API is the following. Learn how to use autosuggest, streetside, heat maps and much more. When set to true the HTTP Status returned is 200 OK. 3KM, others: 37. {"payload":{"allShortcutsEnabled":false,"fileTree":{"examples":{"items":[{"name":"12G1. The Maps JavaScript API features four basic map types (roadmap, satellite, hybrid, and terrain) which you can modify using layers and styles, controls and events,. This article has demonstrated how to use PHP to access the three Bing Maps REST Services APIs. Request historic and predicted travel times, based on real-time and historical traffic data. Bing Maps REST, SOAP, Spatial Data Services. Is anyone have example. Events. The Bing Maps team also asks that you direct technical support related questions to the Microsoft Q&A forums. I have added the dependency of Google Maps API Java Client in my Java project. This request will automatically use predictive traffic data to provide accurate estimates. If you do not have a Google Maps API key yet, check out the link below to setup a. 1. 9 miles away. Distance Matrix API – Calculate travel times and distance in many-to-many. 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. My macro above is specific to the Google Maps Distance Matrix API, which requires a Google API key, and wouldn't work with Bing. Bing Maps REST, SOAP, Spatial Data Services. getElementById('myMap'), {.