mapmaker.routing.routedpath module
File doc…
- class mapmaker.routing.routedpath.PathRouter[source]
Bases:
object
- layout() dict[int, mapmaker.routing.routedpath.RoutedPath] [source]
- mapmaker.routing.routedpath.bezier_control_points(bezier, label='')[source]
Draw cubic Bezier control points and tangents.
- Parameters:
bezier – A CubicBezier
label – A label for the middle control points
- Returns:
A list of GeometricShapes
- mapmaker.routing.routedpath.extend_geometry_by_join(geometry, node, node_dict, edge_dict_0, edge_dict_1)[source]
Smoothly join two edges of a route at a node.
- class mapmaker.routing.routedpath.IntermediateNode(geometry, start_angle, end_angle)[source]
Bases:
object
- class mapmaker.routing.routedpath.RoutedPath(path_id: str, route_graph: Graph, number: int)[source]
Bases:
object
- property nerve_feature_ids: set[str]
- property node_feature_ids: set[str]
- property path_id
- path_geometry() dict[str, list[mapmaker.geometry.shapes.GeometricShape]] [source]
- Returns:
A list of geometric objects. This are LineStrings describing paths between nodes and possibly additional features (e.g. way markers) of the paths.