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

Units of measurement error? #26

Open
jx5c opened this issue May 28, 2016 · 1 comment
Open

Units of measurement error? #26

jx5c opened this issue May 28, 2016 · 1 comment

Comments

@jx5c
Copy link

jx5c commented May 28, 2016

In OMDistance.java, the statement:

float latDist = (float) g2.getLatitude() - (float) g1.getLatitude();

latDist should in the unit of radians, but getLatitude() appears to return degree values.

@dfdietrick
Copy link
Contributor

yeah, I think that should probably be changed. It's only doing that for LINETYPE_STRAIGHT, but it should return the same value as it does for LINETYPE_GREATCIRCLE, since calculating the distance of straight lines doesn't really make sense. Thanks for the heads-up.

  • Don

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

No branches or pull requests

2 participants