double getBearing(string x1, string y1, string x2, string y2)
This method calculates the bearing, i.e. the angle clockwise from north, of the line segment from point (x1, y1) to point (x2, y2), where the given coordinates are assumed to be referred to the Exchange Coordinate System, unless the map is of type NRMR (See Map Types). In the latter case, the given coordinates are assumed to be in the map's own coordinate system.
The returned value is in degrees.