Distance matrix api excel. So I knocked up quickly this VBA Function in Excel which uses Google API distance matrix function to calculate the Google Maps distance. Distance matrix api excel

 
 So I knocked up quickly this VBA Function in Excel which uses Google API distance matrix function to calculate the Google Maps distanceDistance matrix api excel  You can also request a set of route points

The Distance Matrix API free plan provides you with access to a limited number of requests per month and a limited number of tokens you can use. You can use the API to calculate the distance matrix for many types of routing problems. 0 Google distancematrix API without a key. This Python script uses the Pandas library to read data from an Excel file, makes requests to the Google Maps Distance Matrix API to retrieve distance and duration information between origins and destinations, caches API responses for efficiency, and saves the results to an output Excel file. Using Google Maps Distance Matrix API on Excel with less API calls. When you make a POST request for Route Matrix Sync API, the service returns 200 response code for successful request and a response array. WITH ADDRESSThe Excel Matrix Driving Distance Calculator brings the Google Maps Driving results directly into your Excel Spreadsheet. 11. Sendo assim, utilizaremos uma URL que é o formato para solicitação de uma consulta nesta API. This post is a deep dive into Google vs. 6. As a first step, you will need to create a Google Maps API and enable its services. DataFrame(dist. GEO LOC A: 1. Click Close. 2. Route. . In cell A9, enter the label “Average price/gallon”. All notable changes to this project will be documented in this file. Once. 2. © 2023 Google LLC. is the origin; this is the first entry in our randomly generated data set. Using Google Maps Distance Matrix API on Excel with less API calls. I did find Google's Distance Matrix API and MapQuest directions API, but neither can handle over 25 locations. MaaS is the future of transportation. This is where you’ll enter your average fuel mileage. A1 - Postal Code 1 B1 - Postal Code 1 C1 - Distance (KM) Any help would be greatly appreciated. Teams. Step 3: Run VBA Code with API to Calculate Distance Between Two Addresses or Coordinates. I know about Nominatim and. Now the issue is that the Google distance matrix API has a 25-elements per request limit where the sum of the count of origins and destinations shouldn't exceed 25. Google Maps API also factors in real-time traffic data and other variables such as road closures, construction, and accidents to provide accurate. Destination ID: This is the ID of the destination location. To use the Directions API, complete the required setup steps by clicking through the following tabs: Step 1 Step 2 Step 3. Fast indexed lookups of Distance Matrix results. We are using Google distance matrix api and getting different response when using address versus coordinates for the exact same address. I dispose a macro tool that I used for the distance calculation between different points in Excel. Provide an efficient route for your drivers with turn-by-turn directions, real-time traffic, and by displaying real-time traffic along a route. A direction matrix API, such as Google Maps Directions API, provides turn-by-turn directions between two or more points. Google Api in Excel to calculate Driving Distance between places. Based on mapping information, the API calculates the linear distance in miles from a matrix of locations using road information vs. Add a box and/or shading to cell B8. Related questions. ; Cluster data based on travel time or distances. google api maps ms access lookup. 3 contributors. The Google Distance Matrix API is a service that provides travel distance and time for a matrix of origins and destinations. The google documentation says the price per element is $5 per 1000, and the number of origins times the destinations equals the number of elements, and limited to 25 origins or destinations per request. Code. The Distance Matrix API for Syrian application for drivers. All notable changes to this project will be documented in this file. 2. Distance Matrix APIは複数の地点をまとめて指定し、選択した移動モードの距離や所要時間を取得するためのAPIです。 たとえば、1つまたは複数の出発地点に対して、複数の行き先の距離と所要時間を算出したいときに、Distance Matrix APIを使用します。Hi, I'm from Canada & I'm trying to see if there is a formula or macros I can use to calculate the distance (KM) between two postal codes. Matrix containing the distance from every. Putting latitudes and longitudes into a distance matrix, google map API in python. * Calculating point-to-point distance and travel time using google maps API in Python. 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. You can store, access, and keep track of your store locations or other spatial data through our online data source management system. Google API distancematrix returning wrong json result in VBA. 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 Route Optimization capability in Last Mile Fleet Solution is a toolkit that incorporates Routes API, Routes Preferred API, Directions API, and Distance Matrix API. We have more granular information on the errors. pairwise(df[['latitude', 'longitude']]. I know this is somewhat late in the game, but I though it would be worth it to the community to share how I have handled the current state of gmapsdistance package with the main usage limitations imposed by Google Distance Matrix API: Maximum of 25 origins or 25 destinations per request. I succesfully created an API key and I used a tutorial page that showed two functions in VBA, one for Time and one for Distance: 'Returns the number of seconds it would take to get from one place to another Function. Driving routes can include traffic information. Distance Matrix. Status. Bing Maps Distance Matrix API Bing Maps Distance Matrix API These are 2 Jotform columns that will exist in the submissions i. map. I am writing VBA in Excel to calculate the distance between an employee's home address and work address using Bing Maps API calls. Can you please help me on this. Once you have a table, you can write the table to an Excel file. 2. Surpass 100 parameters in api. SSL/TLS Access. Optimizing trips and delivery for suppliers and distributors. In the macro editor in Excel, go to Tools > References and add a reference to "Microsoft XML, v6. 0 Excel 2010 replacing WEBSERVICE() with VBA. Travel. METRIC also but its of no use as it still returns distance in meters only. The response returned when making an asynchronous request to the Distance Matrix API contains a DistanceMatrixAsyncStatus resource which provides information on the status of the request. This solution is often not what people have in mind when they ask for the distance. #1. . How to Calculate Distance Between Two Addresses or Coordinates in Excel VBA: 3 Quick Steps. Règles de confidentialité. 0 Google maps distance matrix api header. Unable to get distance from Google Distance Matrix API. Explore this online distance-matrix-avoid-all sandbox and experiment with it yourself using our interactive online playground. I have the following distance matrix in Excel format. 1. This application is frequently used by logistics organizations trying to figure out the most optimal route for deliveries. A directions API finds the best possible route, based on distance or ETA, between any two given points — and then draws that route. Distance Matrix API application (+ Python script) This application provides you an opportunity to: quickly check the functionality of the Distance Matrix API; use the Distance Matrix API service without programming; get results directly in Excel; use this demo as a good example of how to use the API in a Python script In cell A8, enter the label “Enter your average fuel economy”. csv file. This program requires a valid API for the Google Maps Distance Matrix API. Connexion. e. 7484405 -73. Access by calling const {DistanceMatrixService} = await google. The Distance Matrix API is a modernized take on this glove box classic. I'm searching for a way to calculate mileage by US State based on an origin, waypoints and destination of a route using Google Maps API v3. origin = my_distance['origin_addresses'] dest = my_distance['destination_addresses'] dist = my_distance['rows'] I have tried the df_from_list and many others to try and process the dist data. Built by the Google team for developers everywhere. The process follows this general flow: 1) Convert the employee's address to Lat-Long values using the GetLatLong function. 8. I can't use the Haversine formula, as it's for mileage claims so needs to be road distances in KM. It's free to sign up and bid on jobs. Distances in google sheets. The Google Maps Distance Matrix API is a service that provides travel distance and time for a matrix of origins and destinations. For information about how to overlay routes on a static map using the Bing Maps REST Services. Report an issue; Contribute; StackOverflow; Changelog. The short answer is XPath - well worth learning if you are going to work with any kind of XML. We can link this back to our locations. Download 99. Starting today, Routes API is now generally available. Excel 365. 1 Answer. HTTPS is required for all Google Maps Platform requests that use API keys or contain user data. I have a list of adresses as input and Im looking for the distance between those using an API (OpenStreetMap preferably as its free). For the euclidean distance between two points in one dimension, the formula should look like this (please let me know if I misunderstood your data though): =SQRT ( (SUM (A1:G1)-SUM (A2:G2))^2) As for the matrix, I used INDIRECT to make it work. Google Api in Excel to calculate Driving Distance between places. In our case, we select cells B5, and B6. Distance Matrix with multiple mode, preferred Language and system units. A 20 bytes Base64 URL-safe encoded string used for the authentication of the client application. Search for jobs related to Google distance matrix api in excel or hire on the world's largest freelancing marketplace with 22m+ jobs. I need to use this output as distance matrix. Use This Function to send batch of 25 destination at a time to Google Distance Matrix Function , get the results back in X number of array and Finally merege them all . This can help create more efficient deliveries, a more seamless drop-off and pickup experience, and lower fuel, vehicle and employee costs. To change a quota limit, click the Edit icon for that limit. Distance Matrix API application (+ Python script) This application provides you an opportunity to: quickly check the functionality of the Distance Matrix API; use the Distance Matrix API service without programming; get results directly in Excel; use this demo as a good example of how to use the API in a Python scriptIn cell A8, enter the label “Enter your average fuel economy”. Time-Distance Matrix. private static long[][] computeEuclideanDistanceMatrix(long[][] locations) { //. Want to quickly test the Google API? Below a simple form for building a quick Distance URL. Docs. 1. The distances and times returned are based on the. – geocodezip. North52 Decision Suite Steps. Since then I tried one called Calculate_Distance. 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. Try for free. 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. 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. Visit the Google Maps Platform Support Create a Case page in the Cloud Console. Public Sub test () Debug. Rather a general question. The Time Filter – Advanced tool parameter window, completed. If M * N * K > threshold, algorithm uses a Python loop instead of large temporary arrays. getCurrentPosition. 5K views 3 years ago. You have complete control over the origins in each row and destinations in each column,. You can also fork this sandbox and keep. Introduction. Why distance matrix api returning the status "ZERO_RESULTS" even coordinates are correctly mentioned? 1. It helps you find the ideal route from A to Z, calculates ETAs and distances for matrices of origin and destination locations, and also offers new features. Centre d'aide. Calculate distance and duration between two places. microsoft. com With the Distance Matrix API, you can provide travel distance and time for a matrix of. Here's a basic example of the Distance Matrix API:Distance (location1, location2, unit ) Returns the distance (in kilometers) between two locations (lat/long) on earth using the Haversine formula Distance (Location (33. Share. After execute command above, you will see two generated file named distance_matrix. If you do not have a Google Maps API key yet, check out the link below to setup a. Note that the Maps Embed API, Maps SDK for Android, and Maps SDK for iOS currently have no usage limits and are at no charge (usage of the API. Since I have to use offline more, I have to work with OpenStreetMap data. 9 miles away. Google Maps Platform web services; Directions API; Distance Matrix API; Elevation API; Geocoding API; Geolocation API; Time Zone API; Roads API; Places API; Maps Static API; Support. Origins Destinations Excel VBA API (Google Maps) 0. Maximum 100 elements per server-side request. Google Maps Distance Matrix API - Not Returning long/lat in response. google. 2. 0 in Excel vba, then run the following code: Sub Web_Interface_Routine_Chrome() Dim qryWebString As String, origins As String, destinations As String, resultString As StringCalculate distance between two locations. 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. 0. I commented on your question as to why it is. Connect and share knowledge within a single location that is structured and easy to search. This product is an example Excel workbook with a UDF for calculating Google Maps distance. (latitude, longitude) and may be even distance matrix (given two sets of points, all distances between them)? We can use the public APIs from Bing maps or Google Maps to get the answer to our spreadsheet. Real-world scenarios may include locating where a new commercial bakery should open their next location to reach their customers with ease, or where a school district selects their pick-up locations to get. You can use a distance matrix API within a website’s search algorithm to calculate travel times between a user’s start location and possible locations within their desired travel time. How to Calculate Distance Between Two Addresses or Coordinates in Excel VBA: 3 Quick Steps. Here is a handy piece of VBA code that allows you to query the Google Maps API from Excel, you can feed it any two points that usually work in Google Maps: GPS co-ords, street addresses, landmarks… 2. 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. This function allows us to send a request to the Google Maps Distance Matrix API and retrieve the distance information. Using the Bing Maps Distance Matrix API, the electrician can view all the locations using the optional histogram to access travel times based on a time-window and predicted traffic to each location, to which the red location is actually closer to the office. Google Maps. TravelTime is a way of searching and filtering data using time, not distance. v4. cs file in which you would like to create the classes. Copy and paste the formula below into the. A distance calculator API is a service that provides calculations based on current and forecasted traffic conditions. 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 make a shape/picture move on excel. Google Apps ScriptとGoogle Maps Platformの勉強のため、GoogleスプレッドシートとGoogle Distance Matrix APIを用いて、Google交通情報(旅行時間)を抽出ツールを作成してみました。. Once easily integrated into an app, TravelTime provides the best possible user experience for a location search. Responses are shown for both XML and JSON formats. Responses are shown for. Click the Select a project button, then select the same project you set up for the Maps JavaScript API and click Open. This is a difficult problem to post because the workbook is large and I don't expect anyone to sift through all of it, plus I can't post it with the API key, making it somewhat useless. DistanceMatrix. py metric/imperial . You have to activate the google distance matrix API first and get a key and insert that into the code where I put the #####s. Search. Step 4: Select your origin locations. In this example, the cities specified are Delhi and Mumbai. But i want it to return distance always in km (for eg. This API is extremely convenient and scalable for batch requests determining aggregated metrics of routes (it does not return detailed route information, use the directions api for this use case). STEPS: Firstly, select the cell where we put the name of the cities. HTML. Calculate distance and duration between two places. 1. 2. I have tried using Googles Distance Matrix API but this it is calculating the distance between 2 points, which is good, but I need the break down for miles traveled for each State. [2] This distance function, while well defined, is not a. with Vector > Data Management Tools > Merge Shapefile to One). When you find the request itself, it will show you how it's encoded. 6. In general, a distance matrix is a weighted adjacency matrix of some graph. Open the web page in Chrome, then view the Request Traffic in DevTools (F12), it will be on the network tab. Ce service permet de connaître la distance et le temps de parcours entre deux points géographiques en voiture, à pied ou à vélo. Use HTTPS Make sure you are making the request over instead of API Key Make sure the application has access to the key storage and the APIs needed have been enabled on the Google Developer Console. . When using v=beta, can be accessed by calling const {DistanceMatrixService} = await google. Things to Remember. Note: All Distance Matrix API applications require authentication. To use the API, you'll need an API key. csv and duration_matrix. Some typical challenges are: In case of errors be sure to check if you are sitting behind a proxy server. API. In QGIS you can try the Distance Matrix of Saga (under Processing > Tools > Saga > Shapes - Points). Learn how to call distance matrix API and find the distance and duration between two places. However, the TravelTime API is more cost-effective than the Google Distance Matrix API for calculating large matrices of travel times at once. To view the quota limits, scroll down to the Requests card. Google Api in Excel to calculate Driving Distance between places. Let’s see how you can use the Distance Matrix API to choose the closest repair technician. Harvard CGA has developed a python script to perform these calculations for a batch of paired locations (origin x/y and destination x/y). GeoData ZIP Code Distance Microsoft Excel Template. This API is really easy to use compared to. The preliminary work and setup are completed. ai’s API, on the other hand, supports matrices of up to 5000×5000. geolocation. Distance Matrix API application Guide to use Windows application and Python script Introduction This application provides you an opportunity to: Quickly check the. The distance_matrix function is called with the two city names as parameters. Click the Select a project button, then select the same project you set up for the Maps JavaScript API and click Open. Longitude:. ‍from the documentation. How can I extract the distance from Google Directions API via Excel web query? Hot Network QuestionsExcel Maps Add-in & Location Data Enrichment API. In cell A9, enter the label “Average price/gallon”. data tables post-submission. Please consider the billing structure before using the service. Refer to the API Setup Page for more information, but as to current time google allows for 40,000 calculations monthly free of charge. Hi, I'm from Canada & I'm trying to see if there is a formula or macros I can use to calculate the distance (KM) between two postal codes. You can change the project name at any time. import pandas as pd data = pd. The Google and Mapbox APIs both have a matrix size of 25×25. This is where you’ll enter your average fuel mileage. Generate big distance matrix for scientific research. The format of the function will be as follows: =TRAVELTIME (origin, destination, api_key), =TRAVELDISTANCE (origin, destination, apikey). The response body will contain the data and there will be no possibility to retrieve the results later. Distances in google sheets. app_id. This calculates a distance matrix for all points in one layer only, but does include an ID. Read our Case Studies. In the Google Cloud Console, on the project selector page, click Create Project to begin creating a new Cloud project. js. 1. In call B9, enter the following formula to get the average price/gallon from the XML returned from the web service. python distance_matrix_api. 415068>Google Maps Distance Matrix API を利用して実現しようとしています。 >物件間の移動時間は十分余裕があることが望ましいので、ここでは pessimistic と設定します。 >一方、遠隔地から自宅のエアコンを制御するアプリケーションでは、This is the second part of 2 lessons where you will learn the ins and out of the Bing Map API that you can use in Excel. Note that Google prohibits the use of this API if you are not using it with a Google Map somewhere on the page. importLibrary ("routes"). For example, your company has 50 employees, find all employees that live within 20 minute Drive Time from your office. Hello! I initially tried a module called G_Distance. 1 Download the complete Excel Geocoding tool for Bing from the Excelgeocodingtool. The Google Distance Matrix API provides travel, distance and time for a matrix of origins and destinations. Data} data The geospatial. How to improve track presentation via OSM together with distance? Google maps distance API uses a combination of data sources, including its own database of maps and road networks, satellite imagery, and user-submitted data to calculate distance and travel time. Use the Distance Matrix API service without programming; Get results directly in Excel; Use this demo as a good example of how to use the API in a Python script; You've got no time to deal with coding, or you just need to calculate the travel distances and route time for a large number of similar locations quickly at one time. Currently there is no official routing API for OSM yet but there are lots of third-party routing solutions, either offline routers (and consequently without any limitation) or online routers where each service has different limitations (or none at all). Using Maptive’s drivetime matrix calculator, you can generate a table that lists the distance values between every store and customer. Fine-tune the task order for particular drivers. In most cases, matrices have the shape of a 2-D array, with matrix rows serving as the matrix’s vectors ( one-dimensional array). Article. However my. Learn more about TeamsThe VBA code on access prompts the user for a zip code and search radius then calculates the distance between the user input zip code and the zip code for each record. It includes information such as the distance, estimated travel time, and the route to. 2. Performance optimized version of the Directions API and Distance Matrix API, with additional features. I'm looking to get road distances between 2 cities. Maybe there are APIs which can handle this?Roads API Directions API Distance Matrix API Solutions Industry solutions Mobility services Places Places API Places SDK for Android Places SDK for iOS Places Library, Maps JavaScript API Geocoding API Geolocation API Address Validation API Time Zone API Environment Air Quality API Pollen APIProbably a pretty basic export but I didn't manage to extract the values for every combination in the distance matrix. Bing Maps Distance Matrix API Bing Maps Distance Matrix APIThese are 2 Jotform columns that will exist in the submissions i. But it is possible to have different distance for a single origin and destination by including the alternatives parameter and setting it to true using Directions API. A request will look like this:2. DOMDocument so as to be able to add the namespace. Pic. Step 1: Create a Google Maps API. In the Cloud Console, open the Google Maps Platform Quotas page. 11. In the Cloud Console, open the Google Maps Platform Quotas page. . My next step is to create a formula to return the sequence of addresses in the order I should goto based on shortest distance between each point (also referred to as the traveling salesman problem). The API key created dialog displays your newly created API key. In call B9, enter the following formula to get the average price/gallon from the XML returned from the web service. Fill out the form in detail. Polyline ( {path: [dakota, frick], map: map}); Reload the map and you should see a dark, diagonal line connecting. Surpass 100 parameters in api. 0. I have a set of zip code pairs in Excel. Conditions d'utilisation. See Libraries in the Maps JavaScript API. In this article. This parameter may only be specified for transit directions. Posted by Rayis Imayev on July 24, 2017. 0 votes. Hi, I was originally using some VBA code and Google's API system to calculate distance between Post Codes, it looked like this: Function G_DISTANCE(Origin As String, Destination As String) As DoubleDim myRequest As XMLHTTP60 Dim myDomDoc As DOMDocument60 Dim distanceNode As IXMLDOMNode. Google has a Distance Matrix API that returns the distance and travel times between two (or more) points, which can be specified as either lat+lng or addresses. On the New Project page, fill in the required information: Project name: Accept the default or enter a customized name. The TravelTime Distance Matrix API calculates distances and travel times from thousands of origins to thousands of destinations. As you can see, it worked perfectly. Import google maps distance matrix result into an excel file. Google Api in Excel to calculate Driving Distance between places. To visualize the calculation, we can draw a Polyline between the two markers. Assign tasks across your entire fleet. By providing the origin and destination addresses in specific cells, the formula will automatically fetch the distance data. [2017-July-24] Map visualization in Power BI has drawn many data professionals into a field of сreating visual data stories with maps. 2. Request historic and predicted travel times, based on real-time and historical traffic data. You must have at least one. If you use the app ID/app code option, you need to include an app_id and app_code with every request. VBA Code: Public Sub Google_Distance_Matrix_API() Const. data tables post-submission. 這篇文章介紹的內容,主要參考了Distance Matrix Service的線上API文件,Google寫得十分詳細,想做更深入的應用可以仔細閱讀,另外Google在Udacity有提供免費的Google Map API課程,內容有趣又有許多實際範例,上完真的可以運用Google Map API玩出很多很厲害的功能,有興趣的人可以參考看看。Before you start using the Distance Matrix API, you need a project with a billing account and the Distance Matrix API enabled. 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. google. Macro to auto calculate distance on google maps? I would like to know if it's possible to automatically bring the search result from google maps (or other applications such as bing, etc. DistanceMatrixService class. export-to-excel; google-distancematrix-api; Nick Jones. csv. There is an alternative that costs much cheaper than Google API does. Using the Bing Maps Distance Matrix API, the electrician can view all the locations using the optional histogram to access travel times based on a time-window and predicted traffic to each location, to which the red location is actually closer to the office. Google API distancematrix returning wrong json result in VBA. The Google Maps Distance Matrix API is a service that provides travel distance and time for a matrix of origins and destinations. 9206418,-118. I believe the easiest way would be to use Google Maps Distance Matrix API Web Services. Distance: We will store the estimated distance here. When I estimate the driving distance in other countries, or from BING MAPS website there is no problem. Using the Google Distance Matrix API. Além das informações de tempo e distância, também é possível determinar. Google Maps Distance Matrix URL: Calculate distance between two addresses using Google Maps in Excel. Receiving "Invalid_Request" response from Google-DistanceMatrix api in VBA. Using Google Maps Distance Matrix API on Excel with less API calls. Article. If you are not using maven then you have to set these jars in your classpath大家好讲个题外话本人也是第一次记录这个关于定位API的文章,如果有不对或不足的地方请各位大神批评和指出, 但各位可以放心的是本文的文章是自己整理的大家可以放心阅读 AMap. Edit: This is my code and how the output looks like. Make sure that “Directions API” and “Distance Matrix API” show on your list of services in the Dashboard. * Calculating point-to-point distance and travel time using google maps API in Python. maps. When you use Google API with Excel, you can easily convert your addresses to GPS coordinates, and the other way round, GPS to location. To create a Bing Map API Key of your. v1 for all OSRM 5. This one seems to return -1 no matter what even though I got an API key and. Google Api in Excel to calculate Driving Distance between places. Here is a handy piece of VBA code that allows you to query the Google Maps API from Excel, you can feed it any two points that usually work in Google Maps: GPS co-ords, street addresses, landmarks…2. VBA Code: Public Sub Google_Distance_Matrix_API() Const APIkey. Platform. Bing Maps’ flexible geocoding API pricing gives every developer the tools to build the way they want to. 84 views. 'Calculate Google Maps distance between two addresses Public Function GetDistance (start As String, dest As String) Dim firstVal As String, secondVal As String, lastVal As String firstVal = "secondVal = "&destinations=" lastVal = "&mode=car&language=pl&sensor=false&key=YOUR. The biggest difference between the two is immediately obvious in these definitions: Unlike. This example macro calls the Distance Matrix API with 4 different postcodes - 2 origin postcodes and 2 destination postcodes. KENdi KENdi. 0 Distances in google sheets. Load 7 more. Step 1: Create API Key from Map. If you see the API in the list, you’re all set.