wiki
wiki copied to clipboard
Error with coordinates() when zeros after decimal point
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
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.