RoadClassifier

class roadclassifier.RoadClassifier

Converts list of nodes to a graph, computes a score for each edge in the graph.

apply(graph)

Applies a classification algorithm to list of edges.

This function computes weight attribute for each node in the graph. It should work without copying the input graph, but may return a copy of the graph, if desired.

Parameters:graph (RoadGraphX) – road graph
class roadclassifier.RoadTypeClassifier

Classifies road based on their properties (max speed, residential location etc.)