co2calculator.distances¶
Functions for obtaining the distance between given addresses.
Functions
|
Transform and validate the user input into a proper model for distance calculations |
|
Function to obtain coordinates for a given address |
|
Function to obtain the coordinates of an airport by the IATA code |
|
Function to obtain the coordinates of an airport by the IATA code |
|
Function to obtain coordinates for a given address |
|
Function to obtain coordinates for a given train station |
|
Get the distance between start and destination |
|
Obtain the distance of a route between given waypoints using a given profile todo: check if coords may also be a tuple/array etc. |
|
Obtain the distance of a ferry route (and the total trip distance) between given waypoints todo: check if coords may also be a tuple/array etc. |
|
Function to compute the distance as the crow flies between given locations |
|
Function to categorize a trip according to the travelled distance |
Classes
|
|
|
|
|
|
|
|
|
Exceptions
|
Raised when consumer inputs invalid spatial information |