line.bearing()
Return the bearing (cardinal direction) of the line. The return value is one of the following strings: 'NE'
, 'E'
, 'SE'
, 'S'
, 'SW'
, 'W'
, 'NW'
and 'N'
.
The function returns 'N'
if the two endpoints of the line are coincident.