Geocalc.DMS (Geocalc v0.8.4) View Source
The Geocalc.DMS is a struct which contains degrees, minutes, seconds and cardinal direction.
Also have functions to convert DMS to decimal degrees.
Link to this section Summary
Functions
Converts Geocalc.DMS to decimal degrees
Link to this section Types
Specs
Link to this section Functions
Specs
Converts Geocalc.DMS to decimal degrees
Example
iex> dms = %Geocalc.DMS{hours: 13, minutes: 31, seconds: 59.998, direction: "N"}
iex> Geocalc.DMS.to_decimal(dms)
13.533332777777778