Next / Previous / Contents / Shipman's homepage

11. class Loc: Locality code definition

An instance of this class represents the definition of a locality code used in a specific day-notes element. Public attributes include:

.code

The locality code as a string.

.name

The full name of the locality as a string.

.text

The full description of the locality as a string, or None if there is no long description.

11.1. Loc.addGps(): Add a waypoint

To add a waypoint definition W (as an instance of Section 12, “class Gps: GPS waypoint”) to a Loc instance L:

L.addGps(W)