Maptitude GISDK Help

Heading()

Summary

Returns the azimuth of the AB or BA direction of a line.

 

Changes

Added to Version 2014.

 

Syntax

Heading(int id, array options)

 

Argument Contents
id The integer ID of the line

 

Option Type Contents
Direction String "AB" (the default) or "BA"
Position String "End to End" (the default), "A Node" or "B Node"
Threshold Real The distance from the node to the next shape point

 

Returns

A real number indicating the azimuth in degrees, from 0 (due north) to 360 (measured clockwise).

 

Notes

 

See Also

Function Summary
Azimuth() Computes the azimuth (heading) for a line between two points
GetDistance() Computes the great circle distance between two coordinates

 

 

©2025 Caliper Corporation www.caliper.com