Distance

getDistance()

Description

Returns the distance values between the specified coordinates.
Return value is in "m"

Parameter

Location (Array)

Example

map.getDistance(
   [
       {lng: -122.019807, lat: 45.632433},
       {lng: -122.019767, lat: 45.632453},
       {lng: -122.01971, lat: 45.632472}
   ]))