Hi
I want to set pricing zones for servicing based on the accounts distance from the company HQ.
I've set up Geo coding and I'm trying to work out how to get the distance calculation (as crow fly's is fine) for the Main Office.
I'll then use that to specify which service pricing should be used.
Can anyone help with how I calculate the distance?
Thanks
Thanks Alexander.
It's a simple mathematical formula and you can find tons of code examples such as this one: stackoverflow.com/.../calculate-distance-between-2-gps-coordinates
If you wanted to calculate the driving distance (though I agree that for zones the other approach is more reasonable), here is an example: powerusers.microsoft.com/.../54895
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,900 Super User 2024 Season 2
Martin Dráb 229,275 Most Valuable Professional
nmaenpaa 101,156