top of page

How to Calculate the Distance Between Your Store and a Customer's Location

In this tutorial, I will show you how to calculate the distance between your store and your customer's location. This feature helps customers know how far they are from your store. To achieve this, you'll need to make an API call to calculate the distance between the two locations. Start by obtaining the latitude and longitude of your store from Google Maps. Set up the request URL and include your API token in the header section.


This is a POST request, and in the body section, you'll need to specify four parameters: source latitude (your store's latitude), source longitude (your store's longitude), destination latitude (customer's location), and destination longitude (customer's location). The response will provide the distance in meters and miles, which you can save into a custom field for use in your flow.




0 views0 comments

Comments


bottom of page