web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

Setting Zones based on Distance from HQ

(0) ShareShare
ReportReport
Posted on by 133

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 

I have the same question (0)
  • Matt1405 Profile Picture
    133 on at
    RE: Setting Zones based on Distance from HQ

    Thanks Alexander.

  • Verified answer
    Al Iggs Profile Picture
    on at
    RE: Setting Zones based on Distance from HQ

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 100 Super User 2025 Season 2

#2
Suresh Kulla Profile Picture

Suresh Kulla 72 Super User 2025 Season 2

#3
DAnny3211 Profile Picture

DAnny3211 54

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans