oms_geo_bearing_compute()
Abstract
Determines a North bearing at the source node such that the corresponding great circle around the earth passes through both the source and destination.
Syntax
oms_geo_bearing_compute (src_lat, src_long, dest_lat, dest_long)
| Argument | Type | Description |
|---|---|---|
src_lat |
double |
latitude of the source location |
src_long |
double |
longitude of the source location |
dest_lat |
double |
latitude of the destination location |
dest_long |
double |
longitude of the destination location |
Return Type
double
North bearing at source location for great circle passing through both source and destination locations. If source and destination are the same, or if they are diametrically opposed, the return value will be zero.
Details
The North bearing is an angle in degrees between 0 (inclusive) and 360 (exclusive), such that 0 indicates a northern heading and 90 indicates an eastern heading. To see an example of a North bearing, see Chapter 7 “Network Domain” on page 292.