Closed uamp closed 4 years ago
Great parser, thank you for writing it!
Line 238-269 in converter.js is causing issues though...
(node:16848) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined at converter (node_modules\geo-coordinates-parser\converter.js:248:19)
This happens when trying to decode a location with zero minutes (and possibly seconds, not tried) Eg "N 52d0m0s E 000d0m0s"
Suggest either a check for parts.length!=1 or zero padding further up in the code.
parts.length!=1
Thanks in advance if you are able to fix it!
"N49 0.000 E02 33.314" fails to be parsed for the same reason.
Thank you so much for the positive feedback! Fixed, tested and published to NPM, version 1.2.4.
Great parser, thank you for writing it!
Line 238-269 in converter.js is causing issues though...
(node:16848) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined at converter (node_modules\geo-coordinates-parser\converter.js:248:19)
This happens when trying to decode a location with zero minutes (and possibly seconds, not tried) Eg "N 52d0m0s E 000d0m0s"
Suggest either a check for
parts.length!=1
or zero padding further up in the code.Thanks in advance if you are able to fix it!