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

Fix calculateMidpoint #20

Closed
wants to merge 1 commit into from
Closed

Conversation

pavloDeshko
Copy link
Contributor

@pavloDeshko pavloDeshko commented Jun 19, 2017

  1. Fixed and completed calculateMidpoint(), so it returns correct result as [ lat, lon ] Array. I think its better than {lat: lat, lon: lon}, which can be confused with full-blown GpxWaypoint Object

  2. Added optional inMiles parameter to calculateDistance(). Great Circle in miles is there for a reason, I guess :)

1. Fixed and completed calculateMidpoint(), so it returns correct result as [ lat, lon ] Array, so it won't be confused with full-blown GpxWaypoint {lat: lat, lon: lon} Object

2. Added optional inMiles parameter to calculateDistance(). Great Circle in miles is there for a reason, I guess :)
@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 97.26% when pulling 05d84a0 on pavloDeshko:patch-1 into 8363e3f on elliotstokes:master.

@elliotstokes
Copy link
Owner

Sorry its been a while - Ive been off doing other things. Cheers for this! Ill take a look and get this merged in asap

@pavloDeshko pavloDeshko deleted the patch-1 branch July 18, 2017 17:50
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.

None yet

3 participants