JavaScript library code to determine instantaneous & average running pace from lat-lon & timing data