aequilibrae.transit.functions package#

Submodules#

aequilibrae.transit.functions.compute_line_bearing module#

aequilibrae.transit.functions.compute_line_bearing.compute_line_bearing(point_a: tuple, point_b: tuple) float[source]#

Computes line bearing for projected (cartesian) coordinates. For non-projected coordinates, see: https://gist.github.com/jeromer/2005586

Arguments:

point_a (tuple): first point coordinates (lat, lon) point_b (tuple): second point coordinates (lat, lon)

aequilibrae.transit.functions.del_pattern module#

aequilibrae.transit.functions.del_pattern.delete_pattern(pattern_id: int)[source]#

Deletes all information regarding one specific transit_pattern.

Arguments:

pattern_id (str): pattern_id as present in the database

aequilibrae.transit.functions.get_srid module#

aequilibrae.transit.functions.get_srid.get_srid()[source]#

Get the project SRID. Currently only supports 4326.

aequilibrae.transit.functions.path_storage module#

class aequilibrae.transit.functions.path_storage.PathStorage[source]#

Bases: object

This class is designed to store path-computation objects to take advantage of the fact that AequilibraE preserves the entire shortest path tree when computing a path between two nodes and can re-trace the same tree for a path from the same origin to a different destination.

Since this caching in memory can take too much memory, the threshold parameter exists to limit the number of path objects kept in memory.

If you have a large amount of memory in your system, you can set the threshold class variable accordingly.

add_graph(graph, mode_id)[source]#
get_path_results(origin, mode_id)[source]#
clear()[source]#

Module contents#