Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The current implemenation has inaccuracies. See: - Turbo87/utm#36 - Turbo87/utm#49 repro: ``` var utm = require("utm"); var originalLatitude = -33.8688 var originalLongitude = 151.2093 const { easting, northing, zoneNum, zoneLetter} = utm.fromLatLon(originalLatitude,originalLongitude); const { latitude, longitude } = utm.toLatLon(easting, northing, zoneNum, zoneLetter); console.log(latitude, longitude) console.log(`lat/lon delta: ${latitude-originalLatitude}:${longitude-originalLongitude}`) { const { easting: easting2, northing: northing2, zoneNum: zoneNum2, zoneLetter: zoneLetter2} = utm.fromLatLon(latitude,longitude); console.log(`delta: ${easting - easting2}:${northing-northing2}`); } ```
- Loading branch information