Alternative to Spacial Great Circle Distance API

Keerthi Pradhani 20 Reputation points Microsoft Employee
2025-01-23T23:39:17.35+00:00

I am currently attempting to utilize the Spacial Great Circle Distance API to calculate the distance between two points. However, I have noticed that this API has been deprecated. Could you please advise if there is an alternative solution available?

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
791 questions
{count} votes

Accepted answer
  1. IoTGirl 3,461 Reputation points Microsoft Employee
    2025-01-25T14:35:03.16+00:00

    You should be able to use the Lat, Lon coordinates to calculate a distance without an API. A Bing search returns a mathematical option for conversion from degrees to km, for example. https://www.bing.com/search?q=convert+degree+longitude+to+km

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. rbrundritt 19,306 Reputation points Microsoft Employee
    2025-02-03T20:06:20.4766667+00:00

    As IoTGirl mentioned, straight line distance calculations are fair easy to do in code. In fact they are generally pretty fast too. The great circle distance API you referenced was primarily for use in low powered systems like IoT devices.

    There are a couple of common formula's used for this calculation.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.