iduedu.routes_in_area

iduedu.routes_in_area(graph, area)[source]

Routes of the graph with a travel edge or a stop in an area.

Parameters:
  • graph – Graph with a routes table.

  • area (BaseGeometry | GeoSeries | GeoDataFrame) – A shapely geometry in EPSG:4326 (longitude, latitude), or a GeoSeries or GeoDataFrame with its own CRS, as for clip_urban_graph(); several geometries are united.

Return type:

DataFrame

Returns:

The rows of graph.routes that have an edge or a stop node intersecting the area.

Raises:

ValueError – If the graph has no routes table.