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

Initialize location coordinates to NaN before lookup. #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nickbruun
Copy link

It's useful to have a semantic concept of location coordinates not being available when using the result of a lookup. Currently, a lookup resulting in no location will return a coordinate set of (0, 0). While this coordinate is in the Gulf of Guinea and thus could be argued to be a good "zero value" but (NaN, NaN) seems cleaner to me. Thoughts?

By the way, awesome work on the reader and lookup implementation!

@oschwald
Copy link
Owner

Thanks. I think this might make sense. I need to think about it a bit more as it may be a breaking change for some people.

Base automatically changed from master to main January 16, 2021 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants