Package Exports
- utm-latlng
- utm-latlng/UTMLatLng.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (utm-latlng) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
utm-latlng
LatLng to UTM converter vice versa for Nodejs.
Installation
Via [npm]:
$ npm install utm-latlng
Usage
Javascript
var utmObj = require('utm-latlng');
var utm=new utmObj(); //Default Ellipsoid is 'WGS 84'
OR
var utm=new utmObj('Everest');
Ellipsoid List
- Airy
- Australian National
- Bessel 1841
- Bessel 1841 Nambia
- Clarke 1866
- Clarke 1880
- Everest
- Fischer 1960 Mercury
- Fischer 1968
- Fischer 1968
- GRS 1967
- GRS 1980
- Helmert 1906
- Hough
- International
- Krassovsky
- Modified Airy
- Modified Everest
- Modified Fischer 1960
- South American 1969
- WGS 60
- WGS 66
- WGS 72
- WGS 72
- ED50
- WGS 84
- EUREF89
- ETRS89
utm.convertUtmToLatLng(easting, northing, zoneNum, zoneLetter);
Convert from UTM to latitude/longitude coordinates.
Returns { lat: xxxxx, lng: xxxxx }
.
utm.convertLatLngToUtm(latitude, longitude, precision);
Convert from latitude/longitude coordinates to UTM.
Returns { Easting: xxxxx, Northing: xxxxx, ZoneNumber: xxxx, ZoneLetter: xxxxx }
.