wiki icon indicating copy to clipboard operation
wiki copied to clipboard

Error with coordinates() when zeros after decimal point

Open antitim opened this issue 5 years ago • 1 comments

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

antitim avatar Sep 29 '19 23:09 antitim

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.

dijs avatar Oct 13 '19 13:10 dijs