Exemplo n.º 1
0
        public static double GetDistance(this Location source, double latitude, double longitude)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }

            return(LocationUtility.GetDistance(source.Latitude, source.Longitude, latitude, longitude));
        }
Exemplo n.º 2
0
        public static double GetDistance(this Location source, Location target)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }

            if (target == null)
            {
                throw new ArgumentNullException("target");
            }

            return(LocationUtility.GetDistance(source, target));
        }