Expand description
Network analysis for geospatial routing and accessibility
This module provides comprehensive network analysis capabilities:
- Graph structures: Build network graphs from vector data with directed/undirected support
- Edge weights: Multi-criteria weights (distance, time, monetary cost)
- Graph validation: Structural integrity checks, self-loop/parallel edge detection
- Topology cleaning: Snap nodes, remove duplicates, contract degree-2 chains
- Shortest path: Dijkstra, A*, bidirectional search, Floyd-Warshall
- Turn restrictions: Edge-based pathfinding with turn penalties and prohibitions
- Time-dependent routing: Variable edge costs based on time of day
- Service areas: Calculate isochrones and accessibility zones
- Multi-facility: Service areas from multiple origins with overlap detection
- Routing: Advanced routing with turn penalties, alternatives, waypoint optimization
All algorithms are optimized for large-scale geospatial networks.
Structs§
- Accessibility
Result - Result of accessibility analysis
- AllPairs
Result - All-pairs shortest paths result
- Connected
Component - Connected component information
- Edge
- An edge in the network graph
- EdgeId
- Unique identifier for an edge in the graph
- Edge
Weight - Multi-criteria edge weight supporting distance, time, and custom costs
- Graph
- A network graph for spatial analysis
- Graph
Builder - Builder for constructing graphs from geospatial data
- Graph
Metrics - Graph metrics for analysis
- Isochrone
- An isochrone (contour of equal travel time/distance)
- Isochrone
Options - Options for isochrone calculation
- Multi
Facility Result - Multi-facility service area result
- Network
Edge - An edge in a network (with richer semantics)
- Network
Node - A node in a network (with richer semantics)
- Node
- A node in the network graph
- NodeId
- Unique identifier for a node in the graph
- Overlap
Zone - An overlap zone between two or more facilities
- Route
- A complete route
- Route
Options - Routing options
- Route
Result - Result of multi-route calculation
- Route
Segment - A route segment
- Routing
Criteria - Multi-criteria weight specification
- Service
Area - A service area result
- Service
Area Interval - A single service area interval (break value)
- Service
Area Options - Options for service area calculation
- Shortest
Path - Result of a shortest path computation
- Shortest
Path Options - Options for shortest path computation
- Time
Dependent Weight - Time-dependent weight function
- Topology
Clean Result - Result of topology cleaning
- Turn
Penalties - Collection of turn penalties for a graph
- Turn
Penalty - Turn penalty specification between two edges meeting at a node
- Turn
Restriction - Turn restriction type
- Validation
Issue - A single validation issue
- Validation
Result - Result of graph validation containing all detected issues
- Waypoint
Optimization Result - Result of waypoint order optimization
Enums§
- Graph
Type - Specifies whether the graph is directed or undirected
- Isochrone
Polygon Method - Method for generating isochrone polygons
- Path
Finding Algorithm - Algorithm to use for pathfinding
- Road
Class - Road classification for routing
- Routing
Algorithm - Routing algorithm variant
- Service
Area Cost Type - What cost metric to use for service area computation
- Validation
Severity - Severity level for validation issues
Functions§
- accessibility_
score - Calculate accessibility score for a node based on how many facilities/destinations can be reached within cost thresholds
- astar_
search - Find shortest path using A* algorithm
- astar_
turn_ restricted - Find shortest path using A* with turn restrictions
- bidirectional_
search - Find shortest path using bidirectional Dijkstra
- calculate_
drive_ time_ polygons - Calculate drive-time polygons (isochrones using travel time)
- calculate_
isochrones - Calculate isochrones from a starting point
- calculate_
multi_ facility_ service_ area - Calculate multi-facility service areas
- calculate_
multi_ isochrones - Calculate isochrones from multiple origins (multi-facility isochrones)
- calculate_
route - Calculate a route between two points
- calculate_
route_ with_ alternatives - Calculate route with alternative routes
- calculate_
routes_ batch - Calculate multiple routes in batch
- calculate_
service_ area - Calculate service area from a starting node
- dijkstra_
search - Find shortest path using Dijkstra’s algorithm
- dijkstra_
single_ source - Single-source shortest paths (Dijkstra from one source to all reachable nodes)
- dijkstra_
turn_ restricted - Find shortest path using Dijkstra with turn restrictions
- floyd_
warshall - Floyd-Warshall all-pairs shortest paths
- haversine_
distance - Haversine distance between two geographic coordinates (in meters)
- od_
matrix - Origin-destination matrix computation
- optimize_
waypoint_ order - Optimize the order of waypoints to minimize total route cost Uses nearest-neighbor heuristic followed by 2-opt improvement
- time_
dependent_ dijkstra - Time-dependent Dijkstra search