The Position class

class nvgr.Position(latitude: Latitude, longitude: Longitude)

Bases: object

A position with a latitude and longitude

Attributes

latitudeLatitude

the latitude

longitudeLongitude

the longitude

Methods

__init__(latitude, longitude) - create a new position

__str__() - resturn the position as a string

parse(fmt) - parse the string into a position

classmethod parse(fmt: str) Position

Parse the string into a postion

Parameters

fmtstr

the string to parse

Returns

Postion : the new position