package nmea

  1. Overview
  2. Docs

Module Nmea.CoordSource

Sourcetype ns =
  1. | N
  2. | S
Sourcetype ew =
  1. | E
  2. | W
Sourcetype lat = float * ns
Sourcetype lng = float * ew
Sourcetype t = lat * lng

latlng type

Sourceval eq : t -> t -> bool

eq c c' returns true if c = c'

Sourceval lat : t -> lat

lat ll returns longitude

Sourceval lng : t -> lng

lng ll returns longitude

Sourceval to_string : t -> string

to_string ll transforms latlong to readable string

Sourceval parse_lat : float -> ns -> lat

parse_lat d ew parses nmea latitude

Sourceval parse_lng : float -> ew -> lng

parse_lng d ew parses nmea longitude