A number of useful utility methods for calculating distance and routing information are included in this project.
While some of the more important methods are documented here, others such as basic date validation methods are not listed.

Utilities

GeoUtil

GetDistanceKM

Description: Used to calculate the distance in KM between two geo-points.
Example:

using NMEAParser;
using NMEAParser.Utils;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            double distance = GeoUtil.GetDistanceKM(new LatLon(51.87376, -8.541265),
                                                    new LatLon(51.8787683333333, -8.52397833333333));
        }
    }
}

Last edited Feb 6, 2011 at 8:41 PM by DamienDennehy, version 12

Comments

No comments yet.