bearing and distance

bearing and distance are part of the descriptive data string sent for each record found by a query

Record descriptive data appears on one line, space-delimited, in this format:
bearing compassdirection distance ttl bytes protocol mimetype metaYN

As part of the descriptive data provided with each record returned by a query, Wherehoo reports the bearing from your current location & heading to the object represented by that record.

By default, your heading (HDG) is 0° (due North). If this is not changed, then all bearings are reported relative to due North.
However, if HDG has been changed for the query, the bearing reported will be relative to the stated HEADING, with "straight ahead" = 0°, directly right = 90°, etc...

In the default circumstance (HDG = default = 0° = due North), bearings reported by queries follow North-pointing compass convention, with 0°= North, 90°= East, 180°=South, and 270°=West.

Bearing values are always in degrees and are always integers between 0 and 359.

bearing, default case, when HDG = 0
bearing, when HDG has been set to 120°