tripkit-android / com.skedgo.tripkit.common.model / Location / distanceTo

distanceTo

open fun distanceTo(location:Location!):Intopen fun distanceTo(lat:Double, lon:Double):Int

Get the distance between this and another point

This implementation was pulled from: CodeCodex

Parameters

lat - Double:

lon - Double:

Return Int: The distance in meters between this and that

See Also <a href="http://en.wikipedia.org/wiki/Haversine_formula">Haversine Formula</a>