geodetics-0.0.6: Terrestrial coordinate systems and geodetic calculations.

Safe HaskellSafe
LanguageHaskell2010

Geodetics.LatLongParser

Description

The default reader for Geodetic ground positions is flexible but slow. If you are going to read positions in a known format and performance matters then use one of the more specialised parsers here.

Synopsis

Documentation

degreesMinutesSeconds :: ReadP Double Source #

Parse an unsigned angle written using degrees, minutes and seconds separated by spaces. All except the last must be integers.

degreesMinutesSecondsUnits :: ReadP Double Source #

Parse an unsigned angle written using degrees, minutes and seconds with units (° ' "). At least one component must be specified.

degreesDecimalMinutes :: ReadP Double Source #

Parse an unsigned angle written using degrees and decimal minutes.

degreesDecimalMinutesUnits :: ReadP Double Source #

Parse an unsigned angle written using degrees and decimal minutes with units (° ')

dms7 :: ReadP Double Source #

Parse an unsigned angle written in DDDMMSS.ss format. Leading zeros on the degrees and decimal places on the seconds are optional

angle :: ReadP Double Source #

Parse an unsigned angle, either in decimal degrees or in degrees, minutes and seconds. In the latter case the unit indicators are optional.

latitudeNS :: ReadP Double Source #

Parse latitude as an unsigned angle followed by N or S

longitudeEW :: ReadP Double Source #

Parse longitude as an unsigned angle followed by E or W.

signedLatLong :: ReadP (Double, Double) Source #

Parse latitude and longitude as two signed decimal numbers in that order, optionally separated by a comma. Longitudes in the western hemisphere may be represented either by negative angles down to -180 or by positive angles less than 360.

latLong :: ReadP (Double, Double) Source #

Parse latitude and longitude in any format.