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

utils changes #21

Closed
wants to merge 6 commits into from
Closed

utils changes #21

wants to merge 6 commits into from

Conversation

pavloDeshko
Copy link
Contributor

ups, messed it up :) sorry

it's ready now

  1. completed and working calculateMidpoint()
  2. added inMiles parameter to calculateDistance()
  3. updated basic tests accordingly

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 1ff0c5b on pavloDeshko:master into acd206c on elliotstokes:master.

@pavloDeshko pavloDeshko deleted the master branch August 25, 2017 23:12
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.

2 participants