hcoord-1.0.0.0: Easily convert between latitude/longitude, UTM and OSGB.

Safe HaskellSafe
LanguageHaskell2010

LatLng

Description

To represent a latitude/longitude pair based on a particular datum.

Synopsis

Documentation

data LatLng Source #

Constructors

LatLng 

Instances

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.