dbarbalato / magellan

JavaScript Latitude and Longitude Validation and Formatting
18 stars 12 forks source link

Updated Input Parsing #15

Closed nmuldavin closed 3 years ago

nmuldavin commented 7 years ago

Hi,

I recently implemented magellan to parse user lat-long inputs for a marine-mammal citizen science platform I am working on. Our director (a whale guy) was not happy with the input parsing in certain edge cases so I added a few lines to address those cases. The cases in particular were:

I hope you find these changes helpful. Thanks for the awesome work! We were looking for a way to automatically allow different lat/long formats your package has been a great solution.

mechalas commented 7 years ago

These changes won't parse pure decimal degrees with a direction, e.g. "45.342 N"