Skip to content

v1.2.0

Latest

Choose a tag to compare

@yu-ta-sato yu-ta-sato released this 29 Nov 17:55
39aadb7

What's Changed

Features

  • Added network_costs() and network_cost_matrix() to compute shortest-path origin-destination costs over spatial networks with node or edge attachment, cutoffs, top-k filtering, heterogeneous snapping, and shared sparse routing primitives across OD, proximity, and isochrone queries. (#314)
  • Added directed Overture road processing and speed-limit extraction (travel_mode, get_speed) in process_overture_segments(), one-way directed edge expansion (oneway_col) in segments_to_graph(), and strong or weak directed connectivity (directed, connectivity) in remove_isolated_components(). (#315)
  • Added optional distance- or stop-count-based interpolation of missing GTFS stop times (interpolate_stop_times=True) to get_od_pairs() and travel_summary_graph(). (#309)

Performance

  • Sped up unbounded network-distance searches from multiple origins (knn_graph(), waxman_graph(), euclidean_minimum_spanning_tree(), bridge_nodes()) using batched SciPy sparse-matrix traversals while preserving distances, reachability, and path geometries. (#308)
  • Optimised undirected OD aggregation and vectorised edge geometry creation. (#304)
  • Validated network proximity weights in a single pass. (#305)

Deprecations

  • Split city2graph.utils.spatial into focused submodules (distance, isochrone, tessellation, plotting) and consolidated shared low-level primitives into city2graph.base. Direct imports from city2graph.utils.spatial now emit a DeprecationWarning; import from city2graph, city2graph.utils, or the focused submodules instead. (#314)

Bug fixes

  • GTFS: Preserved actual departure endpoints and chronological trip order in detailed and undirected OD legs, oriented undirected summary lines canonically, kept missing stop times from becoming midnight trips, built OD lines from unmaterialised stop coordinates, excluded invalid stop geometries, and rejected missing frequency period boundaries. (#276, #277, #278, #292, #293)
  • Overture Maps and GBFS: Used every polygon in multipart download areas, respected source level-rule positions after splitting segments, skipped downloads for explicitly empty layer selections, ignored out-of-range connector positions, and kept valid GBFS feeds available alongside malformed files. (#279, #286, #287, #289, #291)
  • Proximity: Rejected invalid fixed-radius cutoffs and invalid network distance costs before routing, and preserved curved street geometry in network proximity paths. (#282, #283, #300)
  • Mobility (OD): Applied undirected OD thresholds after summing reciprocal flows, merged reciprocal flows across mixed-type zone IDs, and kept valid OD flows when a zone centroid is empty. (#290, #294, #299)
  • Morphology and dual graphs: Projected secondary barriers to the place CRS before matching place and movement nodes, retained unique place IDs for edgeless morphology graphs, wrote dual vertices to the active geometry column, and honoured as_nx for empty dual graphs. (#284, #296, #297, #301)
  • Topology and conversions: Clipped empty spatial selections to an empty graph, filtered components by edge row position when edge labels repeat, restored arbitrary rustworkx attribute keys without collisions, and kept PyG edge features and metadata aligned after dropping dangling edges. (#281, #285, #288, #295)

Documentation

  • Converted the five remaining published example notebooks to Markdown tutorials with regenerated figures and updated the Overture and GTFS guides. (#316)
  • Added the human-in-the-loop verification and AI disclosure policy to the contributing guide, README, and pull request template. (#306)

Maintenance

  • Reorganised and sped up the test suite under tests/city2graph/, tests/docs/, and tests/benchmarks/. (#307)
  • Updated locked tornado from 6.6 to 6.6.1. (#275)
  • Prepared the v1.2.0 release metadata, changelog, citation, and security policy. (#317)

New Contributors

Thanks to @rudycelekli, @jjohnnystwsss, and @yu-ta-sato for their contributions to this release, with automated dependency updates by @dependabot[bot].

Full changelog: v1.1.0 → v1.2.0