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
Added optional inMiles parameter to calculateDistance(). Great Circle in miles is there for a reason, I guess :)
Coverage increased (+0.04%) to 97.26% when pulling 05d84a065d2d4d1bbcd968020e992dea6b22341b on pavloDeshko:patch-1 into 8363e3f4728206f24f87ce06c768408fd035a1bd on elliotstokes:master.
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
Added optional inMiles parameter to calculateDistance(). Great Circle in miles is there for a reason, I guess :)