2.1.1. adsb package¶
2.1.1.1. Subpackages¶
- 2.1.1.1.1. adsb.sbs package
- 2.1.1.1.1.1. Submodules
- 2.1.1.1.1.2. adsb.sbs.aircraft module
- 2.1.1.1.1.3. adsb.sbs.archive module
- 2.1.1.1.1.4. adsb.sbs.client module
- 2.1.1.1.1.5. adsb.sbs.json_utils module
- 2.1.1.1.1.6. adsb.sbs.message module
- 2.1.1.1.1.7. adsb.sbs.protocol module
- 2.1.1.1.1.8. adsb.sbs.server module
- 2.1.1.1.1.9. adsb.sbs.session module
- 2.1.1.1.1.10. Module contents
2.1.1.2. Submodules¶
2.1.1.3. adsb.constants module¶
2.1.1.4. adsb.mypy_types module¶
2.1.1.5. adsb.utils module¶
-
adsb.utils.
feet_to_meters
(feet: float) → float[source]¶ Convert feet to meters.
Parameters: feet – a measurement in feet. Returns: measurement in meters
-
adsb.utils.
haversine_distance
(origin: Tuple[float, float], destination: Tuple[float, float]) → float[source]¶ Haversine distance calculation.
Parameters: - origin – a (lat, lon) tuple.
- destination – a (lat, lon) tuple.
Returns: a distance in meters.
-
adsb.utils.
knots_to_kmh
(knots: float) → float[source]¶ Convert velocity in knots to km/h
1 knot (i.e. 1 nm/h or 1 nautical mile per hour) is 1.852 km/h.
Parameters: knots – velocity in knots Returns: velocity in km/h
-
adsb.utils.
knots_to_mps
(knots: float) → float[source]¶ Convert velocity in knots to m/s
1 knot (i.e. 1 nm/h or 1 nautical mile per hour) is 6.667 m/s.
Parameters: knots – velocity in knots Returns: velocity in m/s
-
adsb.utils.
make_geodesic_circle
(center: Tuple[float, float], radius: float, num_points: int = 40)[source]¶ Return a list of num_points (lat,lon) items that represent a closed circle on the Earth such that the great circle distance from ‘center’ to each point is ‘radius’ meters.
Parameters: - center – a (lat,lon) tuple representing the center.
- radius – the radius of the circle.
- num_points – the number of points to use to represent the circle.