API DOCUMENTATION

Distance
Returns the distance values between the specified coordinates.Return value is in “m”

Parameter : Distance

Optional Parameter Description
array "List of coordinates to get distance, must be 2 or more coordinates
ex) [{lat: , lng: },{lat: , lng: }….]"

[ example : Distance ]

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

Return
Calculated Metric Distance Value