Maptitude GISDK Help |
Computes the great circle distance between two coordinates.
dist = GetDistance(coordinate c1, coordinate c2)
Argument |
Contents |
c1 |
First coordinate |
c2 |
Second coordinate |
A real number indicating the distance in the current map units (e.g., miles).
loc1 = Coord(-120000000, 45000000)
loc2 = Coord(-95000000, 37500000)
dist = GetDistance(loc1, loc2)
ShowMessage("The distance is " + String(dist) + " " + GetMapUnits())
Function |
Summary |
Computes the azimuth (heading) for a line between two points |
|
Finds the distance from a coordinate to a line |
|
Gets the current map measurement units |
|
Returns the azimuth of the AB or BA direction of a line |
|
Sets the current map measurement unit |
©2025 Caliper Corporation | www.caliper.com |