Wijmo UI for the Web
distance Method
wijmo.maps Namespace > ICoordConverter Interface : 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
var instance; // Type: wijmo.maps.ICoordConverter;
var value; // Type: number

// Parameters
var lonLat1; // Type:  IPoint
var longLat2; // Type:  IPoint

value = instance.distance(lonLat1, longLat2);
function distance( 
   lonLat1 : IPoint,
   longLat2 : IPoint
) : 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

ICoordConverter Interface