Location
- class Location(*args, **kwargs)
Implementations: Coordinate
, Marker
, Point
, SymbolEvent
, Viewport
An interface common to objects having latitude and longitude
By implementing Location
the object declares that it has latitude
and longitude and can be used to specify location on the map.
Methods
- class Location
- distance(other: Location) float
Calculates the distance in meters between two locations.
This function uses the great-circle distance formula, which assumes Earth is a perfect sphere. This limits the accuracy of the result, but is good enough for most purposes.
Added in version 1.2.
- Parameters:
other – a
Location
Properties
Virtual Methods
- class Location