Hello, I have a list of technicians and a list of customers, I would like to display the nearest technician. for this I wanted to know if in Server Connect I can use the Google API to calculate this distance and store it in my database?
If you know the coordinates of the start and end points you can calculate the distance between with an equation in a custom query but it returns the geographical distance, not the road travel distance
You can use the Api action, check this topic from Max
Please note that too many request can means a lot of charges due to the cost of the maps api usage, check the google docs and be sure to use it wisely.
Hi Brian!
I remember trying something that you’ve mention in a post from years ago, but no luck, still working? Never got it running
I gues this is the best approach as you can avoid the cost of the api
I first encode the addresses in order to retrieve the latitude and longitude of my two addresses which I will store in my database. Afterwards I call my Google Matrix API to determine the duration of the journey and the number of kilometers. The hardest part was filtering the response, so I’ll let you see how I did it, it will be useful to others.