manuelbieh/geolib

Better errors

goldylucks opened this issue · 1 comments

Thanks for a FANTASTIC library, you guys ROCK!

So I'm using this function:
return orderByDistance({ latitude, longitude }, restaurants)

and I get this error:

image

Now I have to go down the rabbit hole of geolib's internals to understand what is causing the error.

Would be a better DX to see something like WARNING - latitude is missing for item 5 on the list

I can submit a PR with some guidance :)

Thank you! That’s a great idea! Feel free to do so!