jdjkelly/jQuery-haversine — pull request #1 by adammeghji (2012-06-11 21:21:16+00:00)
Title: Support for km & mi distance units

Please see the attached pull request, which adds support for "km" and "mi" distance units. The change is backwards-compatible, with the default unit being "km". Specifying "mi" (or anything else) will yield miles. If you'd rather the "anything else" case return "km", feel free to make the adjustment -- only really matters if someone enters something like "kilometers" which is bad input.