bing maps api distance matrix. The slight difference largely comes down to the way the maps have you navigate through the DC metro area. bing maps api distance matrix

 
 The slight difference largely comes down to the way the maps have you navigate through the DC metro areabing maps api distance matrix  The Bing Maps Routing Service allows you to pass in up to 25 waypoints into a single request

A detailed documentation section has guides for getting started with Bing Maps APIs, along with samples of optimal code that developers can benchmark with. Use output parameters to specify the output of the request. 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. We want to use the values in the 'Origin' field for Origin location. } ); } Additional details. [2017-July-24] Map visualization in Power BI has drawn many data professionals into a field of сreating visual data stories with maps. Easily develop with Bing Maps using JavaScript or TypeScript. 0 web control, is started with a valid Bing Maps Key, one (1) transaction is counted. 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. After this I pasted the same URL into. Destination: -34. 00207,25. As part of its ongoing goal to better serve its customers, the company is creating a one-stop tourism platform within its JegoTrip app. Using this API, we can get the distance and duration to reach the destination from the origin for two or multiple origins and destinations. pybaf = pybaf(key = 'key') You need to define two dataframes that contain latitude and longitude and their IDs to calculate a Distance Matrix. Read MoreProblem: Distance Matrix API for two locations in Europe. Thanks! Balasaheb. Bing Maps for Enterprise has many valuable REST services for location-aware applications, like routing , geocoding addresses, calculating an isochrone, and many more. Download 99. The output format for the response. Bing Maps’ flexible geocoding API pricing gives every developer the tools to build the way they want to. Usage. 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. You could make a request for each distance but this would be slow and generate a lot of transactions. The Distance Matrix API uses any number of origins (starting points) and destinations, and returns the distance and travel time between each origin and all requested destinations, starting with the first origin in the request and proceeding step-wise to the next. If your version of Microsoft Excel does not have the Bing Maps Add-in find the add-ins section under the insert tab and click on the. You can use the API to plan a sight-seeing trip, optimize delivery routes, compare transportation modes, or estimate travel costs. 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. Google Maps "Google Distance Matrix API" allows users to enter multiple start and end locations and request just the various travel distances and durations. Visit the Bing Maps Developer site then you will need to create an account. 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. - 2500 elements per 24 hour period. Getting Started with Bing Maps API. 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. 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. Distance timing API [c#] How to calculate distance and duration of travel between two points? API howto please. Google maps has Distance Matrix API but it prohibits using it without showing the map 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. 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. Miles Taylor (UK) 1 Reputation point. 0. 2. Skip to main content. The Bing Maps Distance Matrix API calculates distances and travel times between origins and destinations with an optional travel-time histogram. 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. vrp. You can also overlay routes on map imagery. Google Maps "Google Distance Matrix API" allows users to enter multiple start and end locations and request just the various travel distances and durations. I tested it for the following zip codes: Origin = 76180 Destination = 75029 This API gives 19. This resource provides the status of an asynchronous distance matrix request which includes an estimated amount of time left to process the request, the. 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. Provide a unified API for routing services. Geographic Access Analysis Microsoft Excel Template. Distance: We will store the estimated distance here. 5 km) and in some cases as much as 3. Google Map Distance Matrix API is a service that provides travel distance and time is taken to reach a destination. The distances and times returned are based on the routes calculated by the Bing Maps Route API. 1 Download the complete Excel Geocoding tool for Bing from the Excelgeocodingtool. See Calculate a Truck Route documentation for information on making truck based routing requests. You can then use the waypoint optimization function. Note: you'll need to obtain an API key which is. using System; using System. Any method I have tried using various cURL methods and unirest have been unsuccessful. To view the quota limits, scroll down to the Elements card. Yes. It can also factor in predictive traffic information when generating times thereby allowing you to avoid any potential delays. To change a quota limit, click the Edit icon for that limit. The Bing Maps API delivers feature-driven tools with tons of perks. 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:. 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. Put location intelligence to work for your enterprise. You will normally not need to do any. Templates relying on Bing Maps must also have a Bing API key entered in the "Settings" area of geodata. Step one sets things up, giving the origin and destination locations, setting the travel mode to DRIVING and the measurement system to METRIC. API stands for Application Programming Interface. This library adds support for this by wrapping the truck routing. This article has demonstrated how to use PHP to access the three Bing Maps REST Services APIs. Answers text/html 6/4/2018 4:51:01 PM Ricky_Brundritt 1. 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. A table lists the quota names and limits. The Google Maps API and Google's Distance Matrix service seem like great solutions for the problem. Bing Maps Keys. from pybaf import pybaf. This API is used to power map experiences in Microsoft and third-party applications, including web, Windows Forms, WPF, and UWP applications. Traffic information is used when all the following apply (these are the conditions required to receive the duration_in_traffic field in the Distance Matrix response): The travel mode parameter is driving, or is not specified (driving is the default travel mode). For information about how to overlay routes on a static map using the Bing Maps REST Services. 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. Step 1. Surpass 100 parameters in api. The response shows the distance and duration between the. Generate big distance matrix for scientific research. When you use any Bing Maps API with a Bing Maps Key (you must have a Bing Maps Account), transactions are recorded. " GitHub is where people build software. 99. So in the provided example, you'd be billed 0. Note: We do not want to. In the Cloud Console, open the Google Maps Platform Quotas page. Start building for free with a Basic Key or contact our sales team. “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. 9 miles away. 4. This uses the more generic "query" approach from the Bing Maps API to search for a results like "1600 North Airport Freeway Irving TX". 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. Microsoft. DistanceMatrixService (); service. The process follows this general flow: 1) Convert the employee's address to Lat-Long values using the GetLatLong function. The distances and times returned are based on the routes calculated by the Bing Maps Route API. Note: you'll need to obtain an API key which is. For a complete code sample demonstrating the snap to road functionality, see the Basic snap to road logic sample that demonstrates how to snap. The. So, you could in theory run request a 50x50. Now i need to calculate distance between 2 points. For example, I have two coordinates on a straight road which should be 100m apart: origin: -34. 0. The Routes API allows you to get route distance calculations, route geometry and step-by-step directions via driving, walking or traffic based algorithms. 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. The Bing Maps platform offers a robust support ecosystem both for Developer and Enterprise license holders. CAMS Software Reduces Costs and Increases Efficiency By Using the Bing Maps Distance Matrix API. Geocoding and Routing are core services in mapping platforms. 2. Optimise your fleet routing by easily and precisely calculating travel time and distances in many-to-many scenarios with the new Microsoft Bing Maps Distance Matrix API. I tested this same location with API DISTANCE MATRIX with KEY, and no information retrieveWelcome. Please note China is currently not yet supported. Transactions track API usage and can be billable or non-billable. 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. The distance_matrix method returns a. There are no immediate plans to add these features to the package. Click the APIs drop-down and select the Directions API. I tested it for the following zip codes: Origin = 76180 Destination = 75029 This API gives 19. It only takes a dataset of Geo located data points to do this and everything else is managed by map. So, the distance matrix API is likely to be slightly different from the frontend. 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. A table lists the quota names and limits. Hi, We have below requirement. Optional. " So i assumed that the goal is to select two points on the map and then get the distance in a measure. I have no result on DISTANCE MATRIX APIfor CHINA on BING API . This API returns the recommended route(not detailed) between origin and destination, which consists of duration and distance values for each pair. 8 miles. 1. To use this package and the underlying API, you need to first obtain an API Key for Bing Maps. The Bing Maps platform provides a variety of APIs and programming languages for developing your applications:What you want is the Distance Matrix API. Then you can issues HTTP GET requests for each pair of co-ordinates. May 22, 2017 at 16:38. You should be using the Routes API for a single route with two (2) waypoints. Both the Google’s Distance Matrix API and the Travel Time Matrix API can calculate travel times and distances between locations with different transport modes. If you only want straight line distance, use a standard distance calculation. Both the get and post examples fail with the following errors :. Here's a basic example of the Distance Matrix API:Route matrix methods use what is called multi-destination path search. Build something amazing! The Truck Routing API does not support waypoint reordering. I created this package in May 2021 primarily to to access Bing’s Bird’s Eye (oblique-angle) imagery so the routes and traffic features of the API are not currently supported. 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. TypeScript. Distance Matrix A distance matrix is a 2d array that contains N origins and N destinations. A Bing Maps session is created when you use one of the Bing Maps controls to show a map in your application. Bing Maps provides: Full Logistics and Fleet Management services including. Oct 16, 2023, 9:52 AM. The part of interest here is the Source-step. Most requests can be made with a simple synchronous GET or POST request. Microsoft have been busy, working hard on the Bing Maps v8 Web Control and adding rich new functionality. Start building for free with a Basic Key or contact our sales team. Note: If you are migrating from the Directions API or Distance Matrix API, see migration instructions starting with Why. Features. Ensure safety and regulatory compliance, boost efficiency, and optimize performance to reduce costs and improve ROI, with an API designed. When paired with Azure role-based access control it can be used to control access to Azure Maps REST APIs. 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. Specifies the mode of transportation to use when calculating the distance matrix. However, on the Bing Maps forums, we often encounter developers who have difficulty accessing the Bing Maps API REST services using different JavaScript. Interact with Isochrone API. For example, output=xml can be shortened to o=xml. Using the Distance. You should be using the Routes API for a single route with two (2) waypoints. And the google_distance() function will give you a distance matrix for all the origins/destinations. Hi, I'm on a Basic Education license for the Bing Maps REST services, and I'm using the Distance Matrix API (. Explore the Bing Maps V8 web map control using interactive code samples. Routes API builds on the foundational features of the Directions and. I was trying the examples of how to use Bing's Maps Distance Matrix API. 31,333141, 121,445343 . We are currently using Google Maps API for maps (Places API, Geocoding API, Directions API & Distance Matrix API). A table lists the quota names and limits. Issue is. This process takes text descriptions or addresses and outputs accurate geographic coordinates that correspond to a given physical location. The distance represented by a degree of. 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 . So, a 50x50 matrix would have 2,500 cells, and thus use 625 transactions. The Formula first creates the Student Address by combing the Address 1 fields on the Contact. For example we have 10 records then we want travel time and distance between each point. 5 per call to the Distance Matrix API. Before using Google's Distance Matrix, we need to tap into the Google Maps API. Distance timing API [c#] How to calculate distance and duration of travel between two points? API howto please. 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. The problem is that the Distance Matrix API returns different values compared to the actual value as per the Bing Maps website. To overlay a route on a static map by using the Imagery API, see Get a Static. For straight line distances, the haversine formula will be used to generate a matrix based on as-the-crow-flies distance between the waypoints. The Bing™ Maps REST Services Application Programming Interface (API) is a Representational State Transfer (REST) API that you can use to do common tasks, such as finding an address, retrieving a map with a pushpin and a label, or getting driving directions. Read how it works below. Events. df_origin = 'Insert the origin dataframe here' df_destination = 'Insert the origin dataframe here'. Visit the Truck Routing page to learn about how Bing Maps provides. However, the documentation only lists properties and methods, but there is no example on how to use this. 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. One of the more recent additions to the Bing Maps ecosystem is the Distance Matrix API. Local Insights API. The slight difference largely comes down to the way the maps have you navigate through the DC metro area. The example was taken "as is" from their website (here). Up to 700 cells per request is supported (the number of origins multiplied by the number of destinations). Maximize efficiency by calculating travel time and distances in various scenarios leveraging travel time map features in Bing Maps API. 2. Bing Maps MIO API Custom distance/time matrix. The response has a default namespace you need to add in. To punish myself I did it in a WebForm. More complex queries use asynchronous requests, though they only support driving with a start time. Please note that the Distance Matrix parameters are plural, "Origins" and "Destinations". Each agent has one or more working shifts (e. Based in British Columbia, CAMS Software is a small transportation management software. In my application I am pulling data from mysql and calling the bing distance matrix service. Bing Maps API offers a feature-driven platform with free basic usage and enterprise options. · Hi KPe, You only have two co-ordinates. Truck routing based Distance Matricies - The Bing Maps distance matric API does not support truck routing based. - 100 000 elements per 24 hour period. Output Parameters. Using the Distance Matrix API for locations in Europe. Bing Maps REST, SOAP, Spatial Data Services. 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. I have added the dependency of Google Maps API Java Client in my Java project. Distance Matrix Asynchronous Example Article 07/20/2022 3 contributors Feedback In this article Status Request Downloaded Results See Also This example. For a breakdown of the API by feature and platform, see Choose Your API on the Bing Maps Platform website. You can use Google Maps API to calculate the distance but it has a limitation of certain number of. Routes API. 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. Contents() function to make it easier to build. “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. The matrix itself is often used as a baseline to solve a single user scenario, also known. Starting today, Routes API is now generally available. Click Insert Default API URLs to create a default Route API URL and default Location API URL. . Please note that the Distance Matrix parameters are plural, "Origins" and "Destinations". First, use the Distance Matrix API to get an estimate of times for each route and then determine the best time for each route. Both a GET and its equivalent POST request. Now there are two questions : Can we use calculated data using GOOGLE Matrix API in. You can find full API documentation for the Bing. DAT","contentType":"file"},{"name":"E-n51-k5. Surpass 100 parameters in api. addHandler (directionsManager, 'directionsUpdated', directionsUpdated); function directionsUpdated (e) { //Get the current route index. maps. Compare prices and usage limits from various Distance Matrix API providers, including Google, Mapbox and TravelTime in order to select the best. {"payload":{"allShortcutsEnabled":false,"fileTree":{"examples":{"items":[{"name":"12G1. DAT","path":"examples/12G1. Using the approach you posted you would still have to Pre calculate all possible combinations to achieve this. Here are some tips for evaluating and selecting a Distance Matrix API. ”. For example we have 10 records then we want travel time and distance between each point. Raster Tile API is the successor to the Map Tile API and preserves its best. Bing Map Distance Matrix - Index order. Are these 2,500 elements per phone or do all phones with my app share the. in this tutorial you will learn how to :1- enable use google maps javascript api2- enable and use Google Maps Distance Matrix API3- enable and use google p. DistanceMatrix Resource The Bing Maps Distance Matrix API provides travel time and distances for a set of origins and destinations. Truck routing based Distance Matricies - The Bing Maps distance matric API does not support truck routing based matricies. Question; text/html 7/20/2020 8:07:28 PM adrileosol 0. One way is to utilize the code from Asynchronously Loading the API. It basically calls the Bing Maps Routing service a bunch of times. Comes with a JS demo and a Java client . I want to display the distance in <samp id. We would like to show you a description here but the site won’t allow us. Powerful geocoding, reverse geocoding, and spatial data analytics. You can also request a set of route points. 82+00:00. The Bing Maps Distance Matrix API provides travel time and distances for a set of origins and destinations. Based on OSM data and very fast. Hey, I guess you'd need to convert them into locations and then use it in the distance matrix API. More information: Register and deploy your custom plug-in. getRequestOptions. The response seems to indicate success (status code is. I am writing VBA in Excel to calculate the distance between an employee's home address and work address using Bing Maps API calls. location; distance; status; bing-maps. Your call above only shows one start and one destination which is not actually a matrix but rather just a single route. When set to true the HTTP Status returned is 200 OK for all. Distance Matrix. 10 origins * 10 destinations = 100 elements) and each element costs $0. The interactive SDK is a fun and engaging way to learn about one of Bing Maps’ most powerful APIs. Welcome to the Bing Maps V8 interactive SDK. It includes information such as the distance, estimated travel time, and the route to. Calculate a Distance Matrix - Bing Maps | Microsoft Learn. Here's a basic example of the Distance Matrix API:Route matrix methods use what is called multi-destination path search. Define the bing_api with your Bing key. 829 miles while google map shows 25. 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. I am developing web application on MVC, I have a requirement to automatically find the distance between two locations using the pin code. If your addresses are messy you might get improper results but if they're accurate then you'll be good to go. This video is extremely. 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. 0 1. You can use the alias to shorten the length of the culture parameter. Welcome to the Bing Maps V8 interactive SDK. We are currently using Google Maps API for maps (Places API, Geocoding API, Directions API & Distance Matrix API). Such data can be used in the backend for analysis. Set the view to “Aerial”, zoom in and press the “tilt” icon to put the city at a 3D viewing angle. Introduction. They can also cluster data based. Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. Bing Maps Fleet and Logistics API Solutions From personalized experiences to advanced scenarios in the logistics sector, Bing Maps has you covered. A demo of a recent client project. Click on the “3D cities” list found under the “…” menu in the upper right. Last update: January 10, 2022. Africa. 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. Also do not want to use Azure maps. Step 4. Today, the Bing Maps team is happy to announce improved geolocation algorithms and increased coverage support for these services, which also directly improve the coverage of many of the new Bing Maps Fleet Management APIs, such as the Isochrone and Distance Matrix. This is the code snippet I am using:1. The Bing Maps route API supports calculations with real-time or predictive traffic data (estimated traffic). Generate isochrones on a map showing select business types within a specified walking or driving time. So, I started using the google map distance matrix API as below:Google’s Distance Matrix API provides you the distance between places. Download the Google Maps workbook (button above) Amend Columns A,B,C in the VenueMaster workbook to your data. Bing Maps also goes beyond just using traditional guides to help developers. That is, if you are really using it in combination google maps. Step 2. 2. I have all the locations of taxi drivers stored in web database. The Mapbox Matrix API returns travel times between many points. "Templates relying on Bing Maps must also have a Bing API key entered in the "Settings" area of geodata. 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. 31,333141, 121,445343. Bing Maps API and Information for Developers . 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. 55 miles (2. – Musaddiq Khan Aug 29, 2016 at 10:49This is a collection of over a hundred code samples for the Bing Maps V8 web control. 00001 represents a distance of about one (1) meter in the north-south direction. 547163, 110. Bing Maps API uses high-res location data. The distance matrix API only accepts coordinates as waypoints,. Asynchronous Requests. The Bing Maps Multi-Itinerary Optimization API returns an itinerary schedule for one or more agents to travel between multiple itinerary items, e. More about Bing Maps Interactive SDK. 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. Multi-Itinerary Optimization Snap to Road Truck Routing Bing Maps for Enterprise Bing Maps Location Services Get started with intelligent logistics mapping for fleet. To view the quota limits, scroll down to the Requests card. API works fine for the other addresses which are within USA. The open-source Bing Maps REST toolkit wraps the Bing Maps REST services and added support for truck-based distance matrices. Bing Maps’ Geocode Dataflow API is a spatial data service that allows for fast and accurate geocoding of multiple addresses at a time. Distance Matrix. Excel uses an API to connect with any map like Google Map or Bing Map to collect data for a place. 2021-05-04T12:46:58. The Bing Maps Distance Matrix API is ideal for solving this complex logistics map routing problem. public transit. However, they currently haven't upgraded the system to allow public transport as a mode of travel and this is the output I need. Learn more…. 1 Answer. Generate big distance matrix for scientific research. For Endpoint, select 'Calculate distance and time between start and end locations'. This post is a deep dive into Google vs. I have a set of origin distances, destination distance and also teh GeoApiContext as such: GeoApiContext context = new. The Bing Maps route API supports calculations with real-time or predictive traffic data (estimated traffic). Everything is explained in detail. For questions about the Bing Maps API, a cloud mapping platform provided by Microsoft's Bing. This NodeJS package allows you to interface with the Microsoft's official Bing Maps' Distance Matrix API. This example returns a simple distance matrix between a set of origins and destinations. A dynamically generated matrix that uses the Google Distance Matrix API and also generate map images using the Static Map. I created this package in May 2021 primarily to to access Bing’s Bird’s Eye (oblique-angle) imagery so the routes and traffic features of the API are not currently supported. 9 miles away. The template employs our CDXGeoData web service an. Azure Maps is a suite of geospatial mapping services that enable developers and enterprise organizations to build intelligent location-enabled and map-based experiences. One way is to utilize the code from Asynchronously Loading the API. Your call above only shows one start and one destination which is not actually a matrix but rather just a single route. Google Maps Distance Matrix API - Not Returning long/lat in response. 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. 1 miles (5. 671997. Usage. Please note that the Distance Matrix parameters are plural, "Origins" and "Destinations".