ianengelbrecht / geo-coordinates-parser

A Javascript function for reading a variety of coordinate formats and converting to decimal numbers. Builds on other efforts by returning the verbatim coordinates and the decimal coordinates all in one object.
MIT License
38 stars 9 forks source link

Issue converting degree minutes paired with decimal degrees #14

Closed DrennanRE closed 11 months ago

DrennanRE commented 11 months ago

I am passing ["40° 12.3456 N", "76.9119° W"] and see the following error invalid decimal coordinate format. Is this due to the mixing of coordinate types? Does this project currently support multiple formats in one coordinate pair?

ianengelbrecht commented 11 months ago

This is the expected behaviour, the format of the latitude and longitude need to be the same. It assumes that if not then there is high likelihood of an error in how the coordinates were captured.

On Sat, 02 Dec 2023 at 01:24, Rachael Drennan @.***> wrote:

I am passing ["40° 12.3456 N", "76.9119° W"] and see the following error invalid decimal coordinate format. Is this due to the mixing of coordinate types? Does this project currently support multiple formats in one coordinate pair?

— Reply to this email directly, view it on GitHub https://github.com/ianengelbrecht/geo-coordinates-parser/issues/14, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACH3QI2MLMVZANKRSMAFW7DYHJRJXAVCNFSM6AAAAABADQ4SZCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZDCNZSGMZTINI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Ian Engelbrecht Digitization Coordinator Natural Science Collections Facility South Africa https://nscf.org.za/ https://nscf.org.za/ +27 82 763 4596 i @.>@. / @.***