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
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Mansi Soni as our August 2025 Community…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Abhilash Warrier 100 Super User 2025 Season 2
Suresh Kulla 72 Super User 2025 Season 2
DAnny3211 54