Compass - Showing direction based on latitude and longitude

583 Views Asked by At

In WP7, is it possible to show compass direction based on the given latitude and longitude values. (For example, if I am in India and if the latitude and longitude values of a place in some other country is given). If yes, please give some idea on how to achieve this.

1

There are 1 best solutions below

0
On

This is what is known as the Second (inverse) geodetic problem.

"Given two points, determine the azimuth and length of the line (straight line, arc or geodesic) that connects them." Wikipedia

You can get the distance using System.Device.Location.GeoCoordinate.GetDistanceTo(). Otherwise have a look at the excellent C# Geodesy Library for GPS – Vincenty’s Formulae. In particular the GeodeticCurve.