How to get the distance between two coordinates: Objective: Calculate the distance between two coordinates(latitude and longitude) using Haversine formula in C#. IDE: Visual Studio Community 2017