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

Accurate GeoDistance Function #4499

Merged
merged 1 commit into from Dec 27, 2013

Conversation

chilling
Copy link
Contributor

  • setup accurate GeoDistance Function
  • adapt tests
  • introduced default GeoDistance function
  • Updated docs

closes #4498

@chilling
Copy link
Contributor Author

I also modiefied the tests. But croping out the pole areas is not the right way in opinion. Also the test still fail in other areas. Since we know the function is sloppy, we can drop the accuracy tests I guess.

`plane` (faster). Defaults to `arc`.
How to compute the distance. Can either be `arc` (better precision),
`sloppy` (faster but less precise) or `plane` (fastest). Defaults to
`sloppy`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we name it sloppy_arc instead of just sloppy to make it clear that it doesn't ignore the fact that the earth is round like plane?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@jpountz
Copy link
Contributor

jpountz commented Dec 18, 2013

PR looks good to me. I would just vote to change sloppy to sloppy_arc to make clearer that the distance computation takes into account the fact that the earth is round on the contrary to plane? Also can you give examples of where the distance computation fails so that we can look into it?

* adapt tests
* introduced default GeoDistance function
* Updated docs

closes elastic#4498
@chilling chilling merged commit bc452df into elastic:master Dec 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accurate GeoDistance Function
3 participants