![]() The maximum time interval between the start and end time when calculating a distance matrix histogram is 7 days. This type of request is only accepted when the travel mode is set to driving and a start time has been specified.Ī histogram of travel times and distances can be requested but is limited to a distance matrix that has a maximum of 2,500 origins-destinations pairs for Basic Bing Maps accounts, for Enterprise Bing Maps accounts the limit is 40,000 origins-destinations pairs when the request is made asynchronously. More complex driving related requests which take longer to process, such as calculating a histogram of travel times and distances for each cell of a matrix, can be made by making an asynchronous Distance Matrix request.For example 10,000 origin-destination pairs can be reached if you have: 1 origin, and 10,000 destinations, or 100 origins and 100 destinations defined in your request. Pairs are calculated by multiplying the number of origins, by the number of destinations. Most requests can be made with a simple synchronous GET or POST request.įor 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 Enterprise Bing Maps accounts the origin-destination pairs limit is 10,000.įor travel mode transit and walking, a distance matrix that has up to 650 origins-destinations pairs can be request for all Bing Maps account types.Requests to the distance matrix API can be done in one of two ways: You can also view the example URL and response values in the Examples section.įor Calculate a Distance Matrix geographic availability, see the travelMode parameter below. For more information about the Distance Matrix resource, see Distance Matrix Data. If a distance matrix histogram is requested, a departure time for when in the histogram the cell it is related to will be included. Each distance matrix cell contains the location and index of the origin and destination it is related to, the travel time, and distance. When you make a request by using one of the following URL templates, the response returns a Distance Matrix resource that contains either an array of Distance Matrix cells or information on the asynchronous request that was made to calculate a distance matrix. For example: Find all homes that are within 1 mile of a corner store. Clustering data based on travel time and distances.For example: We are looking to move to a new office, what is the impact on commute times for our staff? Calculate the difference in commute times between locations.Determine arrival times based on travel times.Sorting search results by their actual travel distance or time.The most common is to power algorithms which solve the Travelling Salesman Problem (TSP) and Vehicle Routing Problem (VRP). This API can also generate distance matrices that optionally includes a histogram of travel times over a period of time with a set interval that takes into consideration the predicted traffic at those times.ĭistance matrices are used in several different types of applications. Distance matrices can be calculated for driving, walking and public transit routes. Times are based on predictive traffic information, depending on the start time specified in the request. The distances and times returned are based on the routes calculated by the Bing Maps Route API. If we were still using kilometres, the distance to the furthest galaxies seen would be 145,000,000,000,000,000,000,000 km.The Bing Maps Distance Matrix API provides travel time and distances for a set of origins and destinations. Using this unit, we say that the star Proxima Centauri is about 4.2 light years away.Įven using this unit, numbers in space get pretty big. This is the distance that light travels in a year, so 1 light year is about 9,500,000,000,000 km. One unit for measuring very big distances is the light year. We need a different unit of measurement, because at these distances, kilometres are too small to be much use. Even if we shrank that by the same amount as we shrank our Solar System to fit across New Zealand and Australia, Proxima Centauri would still be over 30 million kilometres away! Light years This star is 40 trillion kilometres away. Now let’s head to the nearest star outside the Solar System, called Proxima Centauri. The table and map show what we’d get if the Sun was a ball 1 kilometre across in the centre of Wellington. ![]() We can now shrink the planets, and the distances between them, by the same amount. The Sun is 1,391,980 km across – let’s shrink that to 1 km. To get an idea of distances inside our Solar System, it helps to reduce everything in size. It’s 78 million kilometres (78,000,000 km) from Earth to Mars, and it’s 4350 million kilometres (4,350,000,000 km) to Neptune. Numbers start getting really big when we look at distances from Earth to other planets in our Solar System.
0 Comments
Leave a Reply. |