I'm guessing that the units it uses is meters (m), but it doesn't seem clear from the documentation I've found. Is this correct?
If so, just to verify, in order to convert between miles/meters, I presume these functions should do the trick:
public static function mi2m($mi) { // miles to meters
return $mi * 1609.344;
}
public static function m2mi($m) { // meters to miles
return $m * 0.000621371192;
}