routing-analysis
Routes OSMnx nearest-node and nearest-edge matching, edge weighting, routing, route GeoDataFrames, street statistics, bearings, and orientation entropy.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- routing-analysis
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Routes OSMnx nearest-node and nearest-edge matching, edge weighting, routing, route GeoDataFrames, street statistics, bearings, and orientation entropy.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/analysis-reference.md4.0 KB
- 参考文档references/routing-reference.md5.9 KB
- 参考文档references/troubleshooting.md3.3 KB
- 脚本scripts/routing_analysis_smoke.py9.0 KB
03 SKILL.md 正文
routing-analysis
Use this sub-skill when you need to match coordinates to an existing OSMnx graph, add or inspect edge weights, solve routes, convert routes to GeoDataFrames, or compute network statistics, bearings, and orientation entropy.
Use this route for
nearest_nodesandnearest_edgeson projected or unprojected graphs.great_circle,euclidean, andadd_edge_lengthsfor distance and length preparation.add_edge_speedsandadd_edge_travel_timesforspeed_kphandtravel_timeedge attributes.shortest_path, batch origin/destination routing withcpus, andk_shortest_paths.route_to_gdffor ordered edge-level route output.count_streets_per_node,basic_stats, and the lower-level street-stat helpers.add_edge_bearingsandorientation_entropyon unprojected graphs.
Do not use this route for
- Graph acquisition, geocoding, or OSM feature downloads. Use
../data-acquisition/SKILL.md. - Projection, graph/GeoDataFrame conversion, or persistence. Use
../graph-modeling-io/SKILL.md. - Plotting routes or orientation diagrams. Use
../elevation-visualization/SKILL.md.
Read first
references/routing-reference.mdfor routing, nearest-match, weight, and route-to-GeoDataFrame details.references/analysis-reference.mdfor stats, bearings, and orientation analysis details.references/troubleshooting.mdfor the predictable routing, weight, and optional-dependency failures.scripts/routing_analysis_smoke.py --helpfor the deterministic local smoke check.
Skill-owned script
scripts/routing_analysis_smoke.py— builds a tiny deterministic graph and exercises lengths, speeds, travel times, routing, route conversion, stats, bearings, orientation entropy, and nearest matching when the optional dependencies are available.
Typical workflow
- Confirm the graph already exists and has the right CRS for the task.
- Add or verify edge lengths, then add speeds and travel times before routing by time.
- Use
nearest_nodesornearest_edgesto map coordinates onto the graph. - Solve one route, many routes, or
k_shortest_pathsas needed. - Convert the node path to a route GeoDataFrame when you need ordered edge output.
- Compute stats or orientation metrics on an undirected view when appropriate.
- Run the smoke script when you need a fast local check.
Cross-links
- If the graph still needs to be downloaded or geocoded, switch to
../data-acquisition/SKILL.md. - If you need to project, simplify, validate, convert, or save the graph, switch to
../graph-modeling-io/SKILL.md. - If the request is actually about plotting routes or orientation roses, switch to
../elevation-visualization/SKILL.md.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).