fietsboek.geo module¶
This module implements GPS related functionality.
- fietsboek.geo.EARTH_RADIUS = 6378137.0¶
Radius of the earth, in meters.
- fietsboek.geo.MOVING_THRESHOLD = 1.1¶
Speed which is considered to be the moving threshold, in m/s.
- class fietsboek.geo.MovementData(duration=0.0, moving_duration=0.0, stopped_duration=0.0, length=0.0, average_speed=0.0, maximum_speed=0.0, uphill=0.0, downhill=0.0)¶
Bases:
objectMovement statistics for a path.
- class fietsboek.geo.Path(points)¶
Bases:
objectA GPS path, that is a series of GPS points.
- movement_data()¶
Returns the movement data.
- Return type:
- class fietsboek.geo.Point(longitude, latitude, elevation, time_offset)¶
Bases:
objectA GPS point, represented as longitude/latitude/elevation.
- distance(other)¶
Returns the distance between this point and the given other point in meters.
- Return type:
- flat_distance(other)¶
Returns the distance between this point and the other point in meters.
This does not take elevation into account, and only looks at the 2d distance.
- Return type: