Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with coordinates() when zeros after decimal point #126

Open
antitim opened this issue Sep 29, 2019 · 1 comment
Open

Error with coordinates() when zeros after decimal point #126

antitim opened this issue Sep 29, 2019 · 1 comment

Comments

@antitim
Copy link

antitim commented Sep 29, 2019

Hi, thanks for this library.
An error occurs while retrieving page coordinates 'KAAD-LP'.

wiki().page('KAAD-LP')
    .then(page => page.coordinates())
    .then(console.log);

Probably a problem with the coordinate format:
37/58/57.00|N|120|22|43.00|W

There are zeros after the decimal point

@dijs
Copy link
Owner

dijs commented Oct 13, 2019

Unfortunately I did not write the coordinates parser, another contributor did and I have not been able to get a hold of them. So I am not an expert in this section of the codebase.

Can you provide some source/examples of what this should return?

Maybe I can clean this up for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants