Distance
Measure distance.
getDistance
mapInstance.getDistance(coordinates)
Parameters
Parameter (Required)
Description
Remark
coordinates
Array of latitude/longitude.
The array must contain at least two coordinates.
JSON Array
Returns
Parameter
Description
Remark
area
measured distance in meter.
Numeric
Example
mapInstance.getDistance(
[
{lng: -122.019807, lat: 45.632433},
{lng: -122.019767, lat: 45.632453},
{lng: -122.01971, lat: 45.632472}
])
The MOGOS Maps API requires an API Key, which can be obtained from the MOGOS Console website or contact [email protected].
Last updated