You can use the Haversine formula to calculate the distance between two points using their latitude and longitude. Here's an example function in C# that uses this formula:
main.cs595 chars21 lines
To use the function, simply pass in the latitude and longitude of the two points you want to calculate the distance between:
main.cs133 chars3 lines
gistlibby LogSnag