/** * Helps with latitude / longitude calculations. * * For distance calculations the default algorithm [Vincenty] is used. * [Vincenty] is a bit slower than [Haversine] but fare more accurate! * * final Distance distance = new Distance(); * * // km = 423 * final int km = distance.as(LengthUnit.Kilometer, * new LatLng(52.518611,13.408056),new LatLng(51.519475,7.46694444)); * * // meter = 422592 * final int meter = distance(new LatLng(52.518611,13.408056),new LatLng(51.519475,7.46694444)); * * Find more infos on [Movable Type Scripts](http://www.movable-type.co.uk/scripts/latlong.html) * and [Movable Type Scripts - Vincenty](http://www.movable-type.co.uk/scripts/latlong-vincenty.html) * * ![LatLong](http://eogn.com/images/newsletter/2014/Latitude-and-longitude.png) * * ![Map](http://www.isobudgets.com/wp-content/uploads/2014/03/latitude-longitude.jpg) * */ /** Equator radius in meter (WGS84 ellipsoid) */ export declare const EQUATOR_RADIUS = 6378137; /** Polar radius in meter (WGS84 ellipsoid) */ export declare const POLAR_RADIUS = 6356752.314245; /** WGS84 */ export declare const FLATTENING: number; /** Earth radius in meter */ export declare const EARTH_RADIUS = 6378137; /** Converts degree to radian */ export declare function degToRadian(deg: number): number; /** Radian to degree */ export declare function radianToDeg(rad: number): number; /** Rounds [value] to given number of [decimals] */ export declare function round(value: number, { decimals }?: { decimals?: number; }): number; /** * Convert a bearing to be within the 0 to +360 degrees range. * Compass bearing is in the rangen 0° ... 360° */ export declare function normalizeBearing(bearing: number): number; /** * Converts a decimal coordinate value to sexagesimal format * * final String sexa1 = decimal2sexagesimal(51.519475); * expect(sexa1, '51° 31\' 10.11"'); */ export declare function decimal2sexagesimal(dec: number): string;