proj4js / mgrs

Utility for converting between WGS84 lat/lng and MGRS coordinates
MIT License
105 stars 45 forks source link

Different Results Depending on Whether MGRS String includes Spaces #44

Closed DanielJDufour closed 5 years ago

DanielJDufour commented 5 years ago

mgrs.toPoint('4QFJ 12345 67890') is returning [ -158.02687377206473, 20.85845798336758 ]

where as

mgrs.toPoint('4QFJ1234567890') is returning [ -157.91607631748826, 21.409801157393012 ]

Technically, MGRS isn't supposed to includes spaces, but we may want to handle for that use case because it's so common place.

DanielJDufour commented 5 years ago

Fixed with https://github.com/proj4js/mgrs/pull/45