bing maps api distance matrix. To change a quota limit, click the Edit icon for that limit. bing maps api distance matrix

 
 To change a quota limit, click the Edit icon for that limitbing maps api distance matrix  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 servicesCreate 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

Setup up your Bing Maps account and key. You will normally not need to do any. These are the Azure Active Directory OAuth2 Flows. This article has demonstrated how to use PHP to access the three Bing Maps REST Services APIs. bingmapr is an R packge for retrieving and plotting maps from the Bing Static Maps API . Contents-Function to call the Locations endpoint as explained before. 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. Modified 2 years, 11 months ago. So, we’ll have to create an API key first to apply this method. This requestId can be used to check the status of the asynchronous distance matrix request by using the following HTTP GET URL. Learn how to generate a distance matrix on excel using Bing Maps API with a small tutorial video by Hemanth Boddapu, a supply chain professional and a student at NITIE Mumbai. Middle East. 2. Azure Maps provides an API for calculating the travel times and distances between a set of locations as a distance matrix. I am writing VBA in Excel to calculate the distance between an employee's home address and work address using Bing Maps API calls. using System; using System. 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 . When you’re ready, create your Maps API key to get started today, or contact sales for licensing support. This will only work if both points are within about 150 meters of a road. Contents() function to make it easier to build. We are currently using Google Maps API for maps (Places API, Geocoding API, Directions API & Distance Matrix API). I am developing web application on MVC, I have a requirement to automatically find the distance between two locations using the pin code. I have added the dependency of Google Maps API Java Client in my Java project. I tested these locations on BING MAPS . Bing Maps API and Information for Developers . Local Insights API. 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. We can link this back to our locations. Using the Bing Maps Distance Matrix API is easy enough, with GET or POST RESTful requests. Bing Map API - Calculate distance using two address. key. Download 99. If you are not actually looking for multiple routes then you probably should use the Routing API (Directions Manager)rather than Distance Matrix. It uses the Web. So, a 50x50 matrix would have 2,500 cells, and thus use 625 transactions. Hi, We have below requirement. Use a Microsoft Excel template to calculate driving (travel) time and distance for an array of locations. 2). 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:. That is, if you are really using it in combination google maps. Bing Maps REST, SOAP, Spatial Data Services. So, you don't need to worry about a surprise bill appearing in this case. Requests to the distance matrix API can be done in one of two ways: 1. Bing Maps does not expose a distance Matrix API, however it is possible to generate the required data using the Bing Maps Routing Service. Asynchronous Requests. Generate big distance matrix for scientific research. A API Google Distance M. JavaScript. In particular, the google_directions() function will give you driving distances, directions, routes, legs, steps etc. ; Supports calculating driving, truck, walking and transit routes that have more than 25 waypoints. It only takes a dataset of Geo located data points to do this and everything else is managed by map. “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. 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. Feedback. Please note that the Distance Matrix parameters are plural, "Origins" and "Destinations". 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. So, you could in theory run request a 50x50. Please note that the Distance Matrix parameters are plural, "Origins" and "Destinations". Traditionally used for Travelling Salesmen or Vehicle Routing scenarios, the Distance Matrix API service determines the best route possible, by re-ordering stops based on the. 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. Getting a Bing Maps Key - Bing Maps | Microsoft Learn. 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. 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. Routes API builds on the foundational features of the Directions and. Basically you're going to end up with a function in Power Query that takes your address, city, state and zip as variables. More complex queries use asynchronous requests, though they only support driving with a start time. You can use Google Maps API to calculate the distance but it has a limitation of certain number of. 0. Everything is explained in detail. A Distance Matrix API is a web service that calculates the distances and journey times between a set of origins and destinations. Getting Started with Bing Maps API. 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. 671997. Fast indexed lookups of Distance Matrix results. We can link this back to our location. This means that they can calculate ETAs and distances between a maximum of 25 origins and 25 destinations at a time. HTML. This is a Python script to calculate a distance matrix, i. All APIs require a Bing Maps Key. Are these 2,500 elements per phone or do all phones with my app share the. Whether that be delivery drivers, sales representatives, or consulting professionals, the MIO API can. If you’re exploring all matrix providers to compare costs check out our latest blog: Compare Matrix API prices and limits side by side with Mapbox, Here, TravelTime and more. A dynamically generated matrix that uses the Google Distance Matrix API and also generate map images using the Static Map. For a complete code sample demonstrating the snap to road functionality, see the Basic snap to road logic sample that demonstrates how to snap. Use output parameters to specify the output of the request. The Bing Maps platform provides a variety of APIs and programming languages for developing your applications:What you want is the Distance Matrix API. High-powered Reverse Geocoding. Some of the other features include, but are. In the Cloud Console, open the Google Maps Platform Quotas page. Using the Distance. Distance Matrix. For a matrix of postcode origins and destinations the Google Maps Distance Matrix API is more efficient because you can specify up to 25 origins and 25 destinations in one request and it returns the results for every origin and destination pair in a single response. I have no result on DISTANCE MATRIX APIfor CHINA on BING API. The data contracts for the Bing Maps REST Services are quite large and have been included at the end of this. This search gets more expensive as the distance from the origin location increases, so the search is limited by a setting called MaxMatrixSearchTime. To view the quota limits, scroll down to the Elements card. Bing Maps’ Truck Routing API matches road limitations to your fleet’s particular requirements to help create routes free of delays, reroutes and obstructions. Destination ID: This is the ID of the destination location. Introduction. var routeIdx = directionsManager. 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. bus. 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 is a small tutorial video on how to generate a distance matrix on excel using Bing Maps API. 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. 100 elements per 10 seconds. 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. 2. Get distance (in km) from a location to many other locations. - 100 000 elements per 24 hour period. Read MoreProblem: Distance Matrix API for two locations in Europe. The Bing Maps Distance Matrix API provides travel time and distances for a set of origins and destinations. To view the quota limits, scroll down to the Requests card. The response has a default namespace you need to add in. Any method I have tried using various cURL methods and unirest have been unsuccessful. A fun and easy way to learn how to use the Bing Maps V8, Microsoft’s modern web mapping SDK. 9 miles away. ”. 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. Step 2. Information of transportation AVAILABLE for the BING MAPS. 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. Step 4. The distances and times returned are based on the routes calculated by the Bing Maps Route API. Simple example showing DistanceMatrix calculations using Bing Maps API. 2. The distance_matrix method returns. Multi-Itinerary Optimization Snap to Road Truck Routing Bing Maps for Enterprise Bing Maps Location Services Get started with intelligent logistics mapping for fleet. an agent with a lunch break will have at least two shifts every day: the shifts before and after lunch). You should be using the Routes API for a single route with two (2) waypoints. map = new Microsoft. The slight difference largely comes down to the way the maps have you navigate through the DC metro area. In other words, this key can be used as a master key in the account that they are issued in. Easy to visualize the routing results. Please note that the Distance Matrix parameters are plural, "Origin s " and "Destination s ". Click on the “3D cities” list found under the “…” menu in the upper right. However, on the Bing Maps forums, we often encounter developers who have difficulty accessing the Bing Maps API REST services using different JavaScript. I tested these locations on BING MAPS . Load 7 more related questions Show fewer related questions Sorted by: Reset to default Know someone who can answer? Share a. Start building a better solution today, create a Bing Maps API key for free to get started or contact us to learn. Veja Como utilizar a API Google Distance Matrix para Otimização de Rotas de Entrega no Excel usando as funções WEBSERVICE e FILTERXML. Build something amazing! The Truck Routing API does not support waypoint reordering. Bing Maps Distance Matrix API Bing Maps Distance Matrix APINow that you have created a Bing Maps account, see Getting a Bing Maps Key to learn how to get Bing Maps Keys to use with the Bing Maps APIs. Calculate a Distance Matrix - Bing Maps | Microsoft Learn. Fast indexed lookups of Distance Matrix results. It's possible? javascript; azure-maps; Share. Step 3. – Musaddiq Khan Aug 29, 2016 at 10:49Using the Distance Matrix API for locations in Europe. Here are the new prices for the Distance Matrix API (unless you've managed to get a free trial). The Bing Maps Local Insights API returns a list of local entities within the specified maximum driving time or distance traveled from a specified point on Earth. DAT","path":"examples/12G1. . 019943 latitude = 37. 703+00:00. Restrictions are indicated by use of avoid parameter and an argument to that parameter indicating the restriction to avoid. cdxtech. Introduction. API stands for Application Programming Interface. Step 1: Sign up for a free Bing Maps developer account: Step 2: Once you have your Bing Maps dev account, you need to create a new key. This example shows the complete asynchronous. Bing Maps API offers a feature-driven platform with free basic usage and enterprise options. "I am trying to find a way to calculate the driving distance between any given two points that are on the map visual. Calculate straight line distance for a matrix or list of zip codes. The template employs our CDXGeoData web service an. 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. vrp. The Bing Maps Distance Matrix API is ideal for solving this complex logistics map routing problem. Bing Maps’ Truck Routing API matches road limitations to your fleet’s particular requirements to help create routes free of delays, reroutes and obstructions. Bing Maps REST, SOAP, Spatial Data Services. The template employs our CDXGeoData web service an. Step 1. 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. The Maps Dev Center provides the tools and resources you need to develop with Bing Maps. Maximize efficiency in both single destination and many-to-many scenarios utilizing Distance Matrix API so that you can calculate time and distance to key destinations. To work this out, we are going to call the 'Distance matrix Service'. e. DAT","contentType":"file"},{"name":"E-n51-k5. Use the feedback button on the consumer site for questions related to that site. You need to pass to and from locations as lower case along with , 2 letter abbr for state. Report an issue; Contribute; StackOverflow; Changelog. 4. Hi I am using the Bing Maps Distance Matrix API. Status Request. Basically you're going to end up with a function in Power Query that takes your address, city, state and zip as variables. and I have searched for methods that takes lat1,lat2 long1,long2 and returns the distance in Kilo meter. The Azure Maps distance matrix API is comparable to the distance matrix API in Bing Maps: Route matrix : Asynchronously calculates travel times and distances for a set of origins and destinations. The API was just released at Microsoft Ignite in October and allows you to generate travel time and distances (with the help of the. Using the approach you posted you would still have to Pre calculate all possible combinations to achieve this. Now there are two questions : Can we use calculated data using GOOGLE Matrix API in. See moreDistance Matrix API. In the Cloud Console, open the Google Maps Platform Quotas page. The Mapbox Matrix API returns travel times between many points. Fill in the API key field that is obtained from Microsoft Bing Maps. maps. Adopting multiple Bing Maps APIs, the app incorporates a live COVID-19 map tracker, travel safety. 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. This is a shared key that is provisioned when you Create an Azure Maps account in the Azure portal or using PowerShell, CLI, Azure SDKs, or REST API. You should be using the Routes API for a single route with two (2) waypoints. For example we have 10 records then we want travel time and distance between each point. One way is to utilize the code from Asynchronously Loading the API. I want to display the distance in <samp id. [2017-July-24] Map visualization in Power BI has drawn many data professionals into a field of сreating visual data stories with maps. With this data and a high-powered reverse geocoding engine, users can better understand their surroundings with displays in premium resolution for aerial imagery mapping. This is set to 180 minutes. To use this package and the underlying API, you need to first obtain an API Key for Bing Maps. 9 miles away. This request will automatically use predictive traffic data to provide accurate estimates. public transit. Hi, I'm on a Basic Education license for the Bing Maps REST services, and I'm using the Distance Matrix API (. Use the distance matrix API as it was developed to solve this issue for you. The query has one destination and multiple origins, the travelMode is set to 'driving' and the units requested are 'second' and 'km'. Distance Matrix API returns a useless response that says isAccepted=True, but isCompleted=False. The distance_matrix method returns a. " So i assumed that the goal is to select two points on the map and then get the distance in a measure. This is a collection of over a hundred code samples for the Bing Maps V8 web control. 9 miles away. 5 km) and in some cases as much as 3. 9 miles away. This article discusses best practices for calling the Azure Maps Route service, including how-to: Choose between the Route Directions APIs and the Matrix Routing API. To insert a Bing Map, click on the insert tab, then click on the Bing Maps add-in button from the add-ins section of the ribbon. var service = new google. To use this API, one must need the API key, which can be get form here. 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. When I estimate the driving distance in other countries, or from BING MAPS website there is no problem. Quick start. Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. Bing Maps REST, SOAP,. This is a Python script to calculate a distance matrix, i. Start building for free with a Basic Key or contact our sales team. Basically $5 to $10 USD for every 1,000 calls to the API. As part of its ongoing goal to better serve its customers, the company is creating a one-stop tourism platform within its JegoTrip app. ai’s API, on the other hand, supports matrices of up to 5000×5000. ; Truck routing based Distance Matricies - The Bing Maps distance matric API does not support truck routing based matricies. vrp. Response. See Calculate a Truck Route documentation for information on making truck based routing requests. C#. To change a quota limit, click the Edit icon for that limit. The Bing Maps team also asks that you direct technical support related questions to the Microsoft Q&A forums. Such data can be used in the backend for analysis. Plug-in sample code for msdyn_GeocodeAddress actionThis browser is no longer supported. Bing Maps for Enterprise has many valuable REST services for location-aware applications, like routing, geocoding addresses, calculating an isochrone, and many more. The response seems to indicate success (status code is. Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. 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. Learn how to use autosuggest, streetside, heat maps and much more. 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. from pybaf import pybaf. 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. 2. We would like to show you a description here but the site won’t allow us. Distance Matrix Example. travelMode: Required. By encapsulating complex algorithms in easy to use endpoints, you can quickly develop solutions in a language of your choice and integrate TSP solutions with your existing tech stack or business application. document. The request/query looks like this. With ease of purchase, flexibility, and support, developers get a feature-driven solution that generates unique. I tested it for the following zip codes: Origin = 76180 Destination = 75029 This API gives 19. This example returns a distance matrix histogram between a set of origins and destinations between June 15 th, 2017 at 1PM PST and June 15 th, 2017 at 5PM PST with a resolution of 2 (30-minute intervals). Using Excel to calculate distance & travel time between two points – Bing Maps API. We want optimize schedule. Here's a basic example of the Distance Matrix API:Route matrix methods use what is called multi-destination path search. You will also receive important announcements around your Bing Maps account. 4. Bing Maps Multi-Itinerary Optimization (MIO) API, is a REST service that automates the process of building itineraries for multiple operators. 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. 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. Step 2. Bing Maps MIO API Custom distance/time matrix. Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. How to improve track presentation via OSM together with distance?bingmapr. To use the Bing Maps REST Services, you. location; distance; status; bing-maps. . , base, satellite and hybrid maps, day/night map schemes, multiple languages and geopolitical views. 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. Google Maps API for Work customers: - 625 elements per query. DOMDocument so as to be able to add the namespace. These samples have been collected from a number of different sources. A detailed documentation section has guides for getting started with Bing Maps APIs, along with samples of optimal code that developers can benchmark with. All what you will learn doesn't requ. Using the Alteryx distance tool, you get the straight line distance instead of the drive route. Offer optimal. See Calculate a Truck Route documentation for information on making truck based routing requests. Each agent has one or more working shifts (e. 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. Compare prices and usage limits from various Distance Matrix API providers, including Google, Mapbox and TravelTime in order to select the best. Security AADToken. } ); } Additional details. To punish myself I did it in a WebForm. Calculate a Distance Matrix - Bing Maps | Microsoft Learn. 31,333141, 121,445343 . Surpass 100 parameters in api. Yes. 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. The Routes API is for calculating driving directions. Support calculating the travel distance matrix between multiple origins and destinations. Calculate distance between two locations. You should be using the Routes API for a single route with two (2) waypoints. For information about how to overlay routes on a static map using the Bing Maps REST Services. 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. You can store, access, and keep track of your store locations or other spatial data through our online data source management system. 11 1 1 silver badge 4 4 bronze badges. However, on the Bing Maps forums, we often encounter developers who have difficulty accessing the Bing Maps API REST services using different JavaScript. 1 Download the complete Excel Geocoding tool for Bing from the Excelgeocodingtool. 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. 1 miles (5. Bing Maps V8 Web Control is loaded with useful new features that redefine how users interact with maps and how businesses utilize geospatial mapping with location information to gain meaningful insights into consumer behavior. TravelTime is the only API to charge on bespoke requests per minute – not PAYG, not monthly or annual usage limits, and no overage. The Bing Maps API delivers feature-driven tools with tons of perks. Azure Maps is a suite of geospatial mapping services that enable developers and enterprise organizations to build intelligent location-enabled and map-based experiences. 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. Multi-Itinerary Optimization API for multiple drivers and deliveries. We want to get the travel time and distance between locations and create matrix. g. Based on OSM data and very fast. 1. Generate big distance matrix for scientific research. NextBillion. 31,326687, 121,439011 . I tested these locations on BING MAPS. I have no result on DISTANCE MATRIX APIfor CHINA on BING API . We are a mobility app that just launched 5 months ago in Tunisia offering P2P carpooling. Step one sets things up, giving the origin and destination locations, setting the travel mode to DRIVING and the measurement system to METRIC. A demo of a recent client project. Maximize efficiency by calculating travel time and distances in various scenarios leveraging travel time map features in Bing Maps API. Optional. So, the distance matrix API is likely to be slightly different from the frontend. The Bing Maps APIs offer all the same features as the Google APIs except for cycling directions. g. One of the more recent additions to the Bing Maps ecosystem is the Distance Matrix API. So in the provided example, you'd be billed 0. Features. Easily develop with Bing Maps using JavaScript or TypeScript. Answers text/html 6/4/2018 4:51:01 PM Ricky_Brundritt 1. Bing Maps Distance Matrix API has a different result than Bing Maps (browser) Ask Question Asked 3 years, 4 months ago. A table lists the quota names and limits. Google Maps "Google Distance Matrix API" allows users to enter multiple start and end locations and request just the various travel distances and durations. com. You can find full API documentation for the Bing. 2. Map labels on map images. 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. Use a Microsoft Excel template to calculate driving (travel) time and distance for an array of locations. Africa. bingmapr is an R packge for retrieving and plotting maps from the Bing Static Maps API . So, a 50x50 matrix would have 2,500 cells, and thus use 625 transactions. This sample calculates the distance in miles between two random pushpins on the map. Routes API. 0 1. When an alias is provided, you can use the alias to shorten the length of the query parameter. This example returns a distance matrix histogram between a set of origins and destinations between June 15 th, 2017 at 1PM PST and June 15 th, 2017 at 5PM PST with a resolution of 2 (30-minute intervals). I've written the googleway package to do this using Google Maps API. com. Explore the Bing Maps V8 web map control using interactive code samples. Some of the other features include, but are. 005 * 100 = $0. Please note that the Distance Matrix parameters are plural, "Origins" and "Destinations". For more information about the Location resource, see Location Data. . Fleet managers can create efficient routes and automate manual processes with this sophisticated API. More than 100 million people use GitHub to discover, fork, and contribute to over 330 million projects. To change a quota limit, click the Edit icon for that limit. This post is a deep dive into Google vs. 1 Answer. 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. Google Maps Distance Matrix API - Not Returning long/lat in response. The Bing Maps Local Insights API provides insights into businesses and entities that can be reached by car, on foot, or public transit. In this demo, we focus on calculating distance & travel time between one set of points, but you can use. Print GetDistance ("new york,ny", "miami,fl", "key"). Please can you confirm the correct usage of the originIndex and destinationIndex distance matrix cell fields. Issue is. 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. In Bing Maps, every 4 cells in a matrix (origin/destination pair) generates 1 transaction. Forums home; Browse forums users; FAQI have a very simple Bing maps program where I want to allow the user to draw one shape on the map, I've got the drawing tools and everything set up however Bing's events don't seem to fire in the correct way - Drawing started - fires when I change my drawing tool to either a line or a polygonAPI returning -1 as a duration and distance for Address "Sumner,WA,USA". For example, I have two coordinates.