edist
¶
-
class
upoints.edist.
LocationsError
(function=None, data=None)[source]¶ Bases:
exceptions.ValueError
Error object for data parsing error.
New in version 0.6.0.
-
function
¶ Function where error is raised.
-
data
¶ Location number and data
Initialise a new
LocationsError
object.Parameters: -
-
class
upoints.edist.
NumberedPoint
(latitude, longitude, name, units='km')[source]¶ Bases:
upoints.point.Point
Class for representing locations from command line.
See also
upoints.point.Point
New in version 0.6.0.
-
name
¶ A name for location, or its position on the command line
-
units
¶ Unit type to be used for distances
Initialise a new
NumberedPoint
object.Parameters: -
-
class
upoints.edist.
NumberedPoints
(locations=None, format='dd', verbose=True, config_locations=None, units='km')[source]¶ Bases:
upoints.point.Points
Class for representing a group of
NumberedPoint
objects.New in version 0.6.0.
Initialise a new
NumberedPoints
object.Parameters: -
destination
(distance, bearing, locator)[source]¶ Calculate destination locations for given distance and bearings.
Parameters:
-
display
(locator)[source]¶ Pretty print locations.
Parameters: locator (str) – Accuracy of Maidenhead locator output
-
flight_plan
(speed, time)[source]¶ Output the flight plan corresponding to the given locations.
Todo
Description
Parameters:
-
import_locations
(locations, config_locations)[source]¶ Import locations from arguments.
Parameters: - locations (list of str) – Location identifiers
- config_locations (dict) – Locations imported from user’s config
- file –
-
-
upoints.edist.
read_locations
(filename)[source]¶ Pull locations from a user’s config file.
Parameters: filename (str) – Config file to parse Returns: List of locations from config file Return type: dict