Wijmo UI for the Web
distance Method
wijmo.maps Namespace > wijmaps type : distance Method
The coordinate of first point, in geographic unit.
The coordinate of second point, in geographic unit.
Calculate the distance between two points.
Syntax
$(function () {
    var returnsValue; // Type:  number
    // Parameters
    var lonLat1; // Type:  Point
    var longLat2; // Type:  Point
    
    returnsValue = $(".selector").wijmaps("distance", lonLat1, longLat2);
});
function distance( 
   lonLat1 : Point,
   longLat2 : Point
) : number;

Parameters

lonLat1
The coordinate of first point, in geographic unit.
longLat2
The coordinate of second point, in geographic unit.

Return Value

The distance between to points, in meters.
See Also

Reference

wijmaps type
wijmaps jQuery Widget