Safe Haskell | Safe-Inferred |
---|

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.

- degreesMinutesSeconds :: ReadP Double
- degreesMinutesSecondsUnits :: ReadP Double
- degreesDecimalMinutes :: ReadP Double
- degreesDecimalMinutesUnits :: ReadP Double
- dms7 :: ReadP Double
- angle :: ReadP Double
- latitudeNS :: ReadP Double
- longitudeEW :: ReadP Double
- signedLatLong :: ReadP (Double, Double)
- latLong :: ReadP (Double, Double)

# Documentation

degreesMinutesSeconds :: ReadP DoubleSource

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

degreesMinutesSecondsUnits :: ReadP DoubleSource

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

degreesDecimalMinutes :: ReadP DoubleSource

Parse an unsigned angle written using degrees and decimal minutes.

degreesDecimalMinutesUnits :: ReadP DoubleSource

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

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

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 DoubleSource

Parse latitude as an unsigned angle followed by `N`

or `S`

longitudeEW :: ReadP DoubleSource

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.