Skip to main content

Notifications

Service | Customer Service, Contact Center, Fie...
Answered

Setting Zones based on Distance from HQ

Posted on by 125

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 

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

    Thanks Alexander.

  • Verified answer
    Al Iggs Profile Picture
    Al Iggs 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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,900 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,275 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans