iduedu.route_stops

iduedu.route_stops(graph, route_key)[source]

Stop nodes of one route in the order the route calls at them.

Parameters:
  • graph – Graph with a routes table.

  • route_key (str) – Key of the route.

Return type:

GeoDataFrame

Returns:

Rows of nodes_gdf (a stop visited twice appears twice) with position and part columns, as route_edges() numbers them.

Raises:
  • ValueError – If the graph has no routes table or its edges no route_key column.

  • KeyError – If the route is not in the table.