Свойство | Тип | Описание | |
---|---|---|---|
EarthRadiusInMiles | double |
Метод | Описание | |
---|---|---|
GetBearing ( Coordinate originCoordinate, Coordinate destinationCoordinate ) : double |
Calculates the bearing, in degrees between two Coordinate objects
|
|
GetBearing ( double originLatitude, double originLongitude, double destinationLatitude, double destinationLongitude ) : double |
Calculates the bearing, in degrees between two geographic points
|
|
GetDirection ( Coordinate originCoordinate, Coordinate destinationCoordinate ) : string |
Gets the cardinal or ordinal direction from the origin point to the destination point
|
|
GetDirection ( double originLatitude, double originLongitude, double destinationLatitude, double destinationLongitude ) : string |
Gets the cardinal or ordinal direction from the origin point to the destination point
|
|
GetDistance ( Coordinate originCoordinate, Coordinate destinationCoordinate, int decimalPlaces ) : Double |
Calculate the distance between two sets of Coordinate objects
|
|
GetDistance ( double originLatitude, double originLongitude, double destinationLatitude, double destinationLongitude, int decimalPlaces ) : double |
Calculate the distance between two sets of coordinates. The latitude of the origin location in decimal notation The longitude of the origin location in decimal notation The latitude of the destination location in decimal notation The longitude of the destination location in decimal notation The number of decimal places to round the return value to
|
public static GetBearing ( Coordinate originCoordinate, Coordinate destinationCoordinate ) : double | ||
originCoordinate | Coordinate | A |
destinationCoordinate | Coordinate | A |
Результат | double |
public static GetBearing ( double originLatitude, double originLongitude, double destinationLatitude, double destinationLongitude ) : double | ||
originLatitude | double | The latitude of the origin location in decimal notation |
originLongitude | double | The longitude of the origin location in decimal notation |
destinationLatitude | double | The latitude of the destination location in decimal notation |
destinationLongitude | double | The longitude of the destination location in decimal notation |
Результат | double |
public static GetDirection ( Coordinate originCoordinate, Coordinate destinationCoordinate ) : string | ||
originCoordinate | Coordinate | A |
destinationCoordinate | Coordinate | A |
Результат | string |
public static GetDirection ( double originLatitude, double originLongitude, double destinationLatitude, double destinationLongitude ) : string | ||
originLatitude | double | The latitude of the origin location in decimal notation |
originLongitude | double | The longitude of the origin location in decimal notation |
destinationLatitude | double | The latitude of the destination location in decimal notation |
destinationLongitude | double | The longitude of the destination location in decimal notation |
Результат | string |
public static GetDistance ( Coordinate originCoordinate, Coordinate destinationCoordinate, int decimalPlaces ) : Double | ||
originCoordinate | Coordinate | A |
destinationCoordinate | Coordinate | A |
decimalPlaces | int | The number of decimal places to round the return value to |
Результат | Double |
public static GetDistance ( double originLatitude, double originLongitude, double destinationLatitude, double destinationLongitude, int decimalPlaces ) : double | ||
originLatitude | double | |
originLongitude | double | |
destinationLatitude | double | |
destinationLongitude | double | |
decimalPlaces | int | |
Результат | double |