JMap.Geometry.getDistance
Returns the distance in kilometers between 2 points.
the first point
The second point
// returns the distance between the 2 pointsconst distance = JMap.Geometry.getDistance([ 10, 20 ], [ 30, 30 ])// returns the distance between the 2 pointsconst distance = JMap.Geometry.getDistance({ x: 10, y: 20 }, { x: 30, y: 30 }) Copy
// returns the distance between the 2 pointsconst distance = JMap.Geometry.getDistance([ 10, 20 ], [ 30, 30 ])// returns the distance between the 2 pointsconst distance = JMap.Geometry.getDistance({ x: 10, y: 20 }, { x: 30, y: 30 })
JMap.Geometry.getDistance
Returns the distance in kilometers between 2 points.