Copyright | (c) 2020 Cedric Liegeois |
---|---|
License | BSD3 |
Maintainer | Cedric Liegeois <ofmooseandmen@yahoo.fr> |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Parsers and formatter of latitudes & longitudes.
Synopsis
- isValidLatLong :: Model a => Angle -> Angle -> a -> Bool
- isValidLat :: Angle -> Bool
- isValidLong :: Model a => Angle -> a -> Bool
- latLongDms :: Model a => a -> ReadP (Angle, Angle)
- latLongDmsCompact :: Model a => a -> ReadP (Angle, Angle)
- latLongDmsSymbols :: Model a => a -> ReadP (Angle, Angle)
- showLatLong :: (Angle, Angle) -> String
Documentation
isValidLatLong :: Model a => Angle -> Angle -> a -> Bool Source #
isValidLatLong lat lon m
determines whether the given latitude & longitude are
both valid for model m
.
isValidLat :: Angle -> Bool Source #
isValidLat lat
determines whether the given latitude is valid - i.e. in range [-90°, 90°].
isValidLong :: Model a => Angle -> a -> Bool Source #
isValidLong lon m
determines whether the given longitude is valid for model m
.
- If longitude range is L180: in range [-180°, 180°]
- If longitude range is L360: in range [0°, 360°]
latLongDmsCompact :: Model a => a -> ReadP (Angle, Angle) Source #
reads latitude and longitude in DD(D)MMSS.