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)
  • 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

  • Matt1405 Profile Picture
    133 on at
    RE: Setting Zones based on Distance from HQ

    Thanks Alexander.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 60 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 52 Super User 2025 Season 2

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 36 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans