MobileForms Toolkit Documentation

GeoPoint.GetDistanceInMeters Method (Double, Double)

Returns the calculated distance in meters, from the current Resco.Geo.GeoPoint to the other point defined by latitude and longitude.

public double GetDistanceInMeters(
double latitude,
double longitude
);

Parameters

latitude
The latitude of the point used to calculate the distance from the current Resco.Geo.GeoPoint.
longitude
The longitude of the point used to calculate the distance from the current Resco.Geo.GeoPoint.

Return Value

Returns a System.Double. The distance between the two geographic coordinates in meters.

Exceptions

Exception Type Condition
ArgumentException One of the points has invalid latitude or longitude.

See Also

GeoPoint Class | Resco.Location Namespace | GeoPoint.GetDistanceInMeters Overload List