Package sabx10 :: Package oxm :: Module turn :: Class Turn
[hide private]
[frames] | no frames]

Class Turn

source code

object --+    
         |    
geom.Point --+
             |
            Turn

A Turn object sub-classes Point and adds fromto, cue, and comments to describe a turn. Turns don't natively have lat and lon values set, since the SABX file doesn't have those for turns. Those values typically get set when a turn is processed.

Instance Methods [hide private]
 
__init__(self, id, fromto, cue, comments)
Save the passed-in data.
source code

Inherited from geom.Point: calculate_distance, pt_dist_from

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
string comments
additional info about the turn
string cue
instructions for executing the turn
string fromto
from segment to segment

Inherited from geom.Point: ele, id, lat, lon, usgs

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, id, fromto, cue, comments)
(Constructor)

source code 

Save the passed-in data.

Parameters:
  • id (string) - id of the turn
  • fromto (string) - from segment to segment
  • cue (string) - instructions for executing the turn
  • comments (string) - additional info about the turn
Overrides: object.__init__