Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
LatLng
Description
To represent a latitude/longitude pair based on a particular datum.
- data LatLng = LatLng {}
- mkLatLng :: Double -> Double -> Double -> Datum -> Except String LatLng
- calcPhiN' :: Double -> Double -> Double -> Double -> Double -> Double
- toWGS84 :: LatLng -> LatLng
- toDatum :: LatLng -> Datum -> LatLng
- toOSGB36 :: LatLng -> LatLng
- distance :: LatLng -> LatLng -> Double
- distanceMiles :: LatLng -> LatLng -> Double
- latitudeDegrees :: LatLng -> Int
- longitudeDegrees :: LatLng -> Int
- calcDegrees :: Double -> Int
- latitudeMinutes :: LatLng -> Int
- longitudeMinutes :: LatLng -> Int
- calcMinutes :: Double -> Int
- latitudeSeconds :: LatLng -> Double
- longitudeSeconds :: LatLng -> Double
- calcSeconds :: Double -> Double
Documentation
toWGS84 :: LatLng -> LatLng Source #
Convert this LatLng from the OSGB36 datum to the WGS84 datum using an approximate Helmert transformation.
toOSGB36 :: LatLng -> LatLng Source #
Convert this LatLng from the WGS84 datum to the OSGB36 datum using an approximate Helmert transformation.
distance :: LatLng -> LatLng -> Double Source #
Calculate the surface distance in kilometres from this LatLngPoint to the given LatLngPoint.
distanceMiles :: LatLng -> LatLng -> Double Source #
Calculate the surface distance in miles from this LatLngPoint to the given LatLngPoint.
latitudeDegrees :: LatLng -> Int Source #
longitudeDegrees :: LatLng -> Int Source #
calcDegrees :: Double -> Int Source #
latitudeMinutes :: LatLng -> Int Source #
longitudeMinutes :: LatLng -> Int Source #
calcMinutes :: Double -> Int Source #
latitudeSeconds :: LatLng -> Double Source #
longitudeSeconds :: LatLng -> Double Source #
calcSeconds :: Double -> Double Source #