Calculate Distance Between Geocodes in C# and JavaScript (pietschsoft.com)
submitted by
crpietschmann(11.3k) 4 years, 3 months ago
There are times when I need code to calculate the distance between two geocodes (Lat/Long points). I don't need it very often and until now I didn't have a code snippet that I could jus copy and paste. I was searching and found Rob Conery's LINQ and Geocoding post. It's an interesting post and he includes a sample of how to use Lambda expressions in C# 3.0 to calculate the distance between two geocodes in Miles. I decided to copy his code snippet and make sure it works in .NET 2.0 and also convert it to JavaScript.
|category: C#
|Views: 244
tags:
GIS Geocode .net2.0 C# JavaScript another
Everyones tags:
Your Tags: