Coordinate transformations between latitude/longitude WGS84 and OSGB36.
$ npm install mt-coordtransform
The module contains methods for transforming latitude/longitude coordinates between WGS84 (generally used by GPS systems or any world-wide reference system) and OSGB36 (used in all Ordnance Survey mapping).
var LatLon = ;var CoordTransform = ;var pointWGS84 = 515136 00;var pointOSGB36 = CoordTransform;
The available methods of the
CoordTransform module object is listed below.
Convert latitude/longitude point in OSGB36 to WGS84.
var pointOSGB36 = 515136 00;var pointWGS84 = CoordTransform;// => 51°30′51″N, 000°00′06″W (as LatLon object)
Convert latitude/longitude point in WGS84 to OSGB36.
var pointWGS84 = 515136 00;var pointOSGB36 = CoordTransform;// => 51°30′47″N, 000°00′06″E (as LatLon object)
Convert latitude/longitude from one ellipsoidal model to another.
q.v. Ordnance Survey 'A guide to coordinate systems in Great Britain' Section 6 (www.ordnancesurvey.co.uk/oswebsite/gps/docs/A_Guide_to_Coordinate_Systems_in_Great_Britain.pdf)
Please visit www.movable-type.co.uk/scripts/latlong-convert-coords.html for more information on conversion between WGS84 and OGSB36 systems.
The original code was written by Chris Veness and can be found at www.movable-type.co.uk/scripts/latlong-convert-coords.html. It is released under the simple Creative Commons attribution license (http://creativecommons.org/licenses/by/3.0/).
This project is released under the MIT license.