kendrick-oppong/geoskills/routing-network-analysis
Claude Code and agent skill by kendrick-oppong/geoskills
- community
Checking that the SKILL.md file is still in the repository.
Use when building routing, shortest-path, isochrone, or network analysis features — choosing between OSRM, Valhalla, GraphHopper, or pgRouting; network graph preparation from vector data; and common routing-graph data pitfalls.
Install
npx vskill@latest install kendrick-oppong/geoskills/routing-network-analysisSKILL.md
The same SKILL.md was published earlier as kendrick-oppong/geoskills/routing-network-analysis.
Routing & Network Analysis
When to use this skill
- "Add turn-by-turn directions / travel time / isochrones to the app"
- Building a custom routing graph from raw road-network vector data
- Debugging routes that take an obviously wrong path or fail to route at all between two nearby points
Decision framework
| Tool | Best for | Notes | |
|---|---|---|---|
| OSRM | Very fast car routing at scale, simple use cases | Contraction hierarchies give sub-millisecond queries; less flexible for multi-modal or complex custom costing | |
| Valhalla | Multi-modal (car/bike/pedestrian/multi-leg), customizable costing models, isochrones | More configurable cost functions than OSRM; slightly more operational complexity | |
| GraphHopper | Similar niche to Valhalla, Java-based, good for custom vehicle profiles | Choose based on team's existing stack/language comfort and licensing (GraphHopper has both OSS and commercial tiers) | |
| pgRouting | Routing that needs to live inside existing PostGIS infrastructure, or custom/non-road networks (utility networks, trails, custom graphs) | Good when the network isn't standard OSM roads (e.g., an internal facility network, sewer/utility network) or when tight integration with other PostGIS data is more valuable than raw routing speed |
Default: for standard road-network routing at product scale, OSRM or Valhalla (self-hosted from OSM extracts) over building custom routing logic — this is a solved problem with mature open tooling; don't reinvent shortest-path/contraction-hierarchy logic. Use pgRouting specifically when the network is non-standard or routing needs to be one query among many in an existing PostGIS-based data model.
Checklist
- [ ] Is the underlying network graph properly noded — do line segments that visually touch actually share an exact coincident vertex? (see
geodata-qaqc) Unconnected segments silently break routability between apparently-adjacent roads. - [ ] Are one-way restrictions, turn restrictions, and access restrictions (e.g. no-entry, vehicle-class restrictions) correctly encoded in the source data before it's fed to the routing engine — missing these produces routes that are illegal or physically impossible.
- [ ] Is the routing profile (car/bike/pedestrian/etc.) using an appropriate cost function — travel time weighting differs meaningfully from pure distance, especially for realistic ETAs.
- [ ] For isochrone (travel-time polygon) features, is the isochrone tool's resolution/simplification setting tuned — overly coarse isochrones look blocky and can materially misrepresent reachable area.
- [ ] Is graph data refreshed on a defined cadence (OSM changes constantly) — a stale routing graph will route through closed roads or miss new ones.
- [ ] For multi-modal trips (e.g., walk + transit + bike), is the tool actually multi-modal-capable (Valhalla) rather than force-fitting a single-mode engine?
Common pitfalls
- Unconnected road segments from digitizing/import artifacts: two roads that touch visually on a map but don't share a vertex are invisible to a routing graph — always validate topology, not just visual appearance, before building a routable graph.
- Ignoring turn restrictions in custom-built graphs: produces routes with illegal U-turns or maneuvers the underlying regulations forbid — critical for any commercial routing product.
- Treating routing distance as equivalent to travel time: shortest-distance and fastest-time routes frequently diverge meaningfully (e.g., a longer highway route beats a shorter but slow local-road route) — pick the cost function deliberately per use case.
- Rebuilding the entire routing graph on every minor data update: expensive; most tools support incremental updates or at least a scheduled full rebuild rather than on-demand rebuilding per request.
- Using pgRouting for continent-scale, high-QPS car routing: works, but will generally be slower than a purpose-built contraction-hierarchy engine (OSRM/Valhalla) at that scale — reserve pgRouting for custom/smaller networks or when integration convenience outweighs raw speed.
Reference snippets
Related skills
geodata-qaqc— network topology validation before building a routing graphpostgis-geospatial— pgRouting's underlying database layer
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/routing-network-analysis/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kendrick-oppong/geoskills/routing-network-analysis)