the distance to convert
the output unit
Optional
fromUnit: JMAP_DISTANCE_UNITSthe input unit
if invalid parameters
// returns 2 kilometers in miles
JMap.Geometry.convertLength(2, "miles")
// returns 200 meters in yards
JMap.Geometry.convertLength(200, "yards", "meters")
JMap.Geometry.convertLength
Converts the distance from a unit to another.