Expand description

Longitude

Examples with New York City Grand Central Terminal:

let latitude: LongitudeAsDecimalDegreeAsTypeF64 = 40.652687;
let longitude: LongitudeAsDecimalDegreeAsTypeF64 = -73.877188;

Representations of longitude and longitude

Geolocation of longitude and longitude can use a variety of representations such as:

  • Decimal Degree (DD). This is the most common representation.

  • Degree and Minute (DM). This has degree as an integer, and minute as an integer (rarely) or decimal (typically). This representation is sometimes used for historical data or for legal reasons.

  • Degree and Minute and Second (DMS). This has degree as an integer, minute as an integer, and second is an integer (rarely) or decimal (typically). This representation is sometimes used for historical data or for legal reasons.

Example as Decimal Degree (DD) representation:

let longitude_dd: LongitudeAsDecimalDegreeAsTypeF64 = 40.652687;

Example as Degree Minute Second (DMS) representation:

let longitude_dm_degree: LongitudeAsDegreeMinuteWithDegreeAsTypeI16 = 40;
let longitude_dm_minute: LongitudeAsDegreeMinuteWithMinuteAsTypeF32 = 39.16122;

Example as Degree Minute Second (DMS) representation:

let longitude_dms_degree: LongitudeAsDegreeMinuteSecondWithDegreeAsTypeI16 = 40;
let longitude_dms_minute: LongitudeAsDegreeMinuteSecondWithMinuteAsTypeI8 = 39;
let longitude_dms_second: LongitudeAsDegreeMinuteSecondWithSecondAsTypeF32 = 9.6732;

Structs

Type Definitions