C# Class Aqueduct.Utils.GeoSearchService

显示文件 Open project: aqueduct/Aqueduct.SitecoreLib

Public Methods

Method Description
DistanceInMilesBetween ( double lat1, double lon1, double lat2, double lon2 ) : double
IsInRange ( double latFrom, double lonFrom, double latTo, double lonTo, double range ) : bool

Private Methods

Method Description
deg2rad ( double deg ) : double
rad2deg ( double rad ) : double

Method Details

DistanceInMilesBetween() public static method

public static DistanceInMilesBetween ( double lat1, double lon1, double lat2, double lon2 ) : double
lat1 double
lon1 double
lat2 double
lon2 double
return double

IsInRange() public static method

public static IsInRange ( double latFrom, double lonFrom, double latTo, double lonTo, double range ) : bool
latFrom double
lonFrom double
latTo double
lonTo double
range double
return bool