Skip to content
Back to skills

Osmnx

ASecurity

"Route OSMnx questions about OpenStreetMap data acquisition, graph

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
developmentpythongonode

Works with

  • cli

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill osmnx --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Osmnx?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Osmnx
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-osmnx/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-osmnx)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: osmnx
description: "Route OSMnx questions about OpenStreetMap data acquisition, graph
  modeling and file I/O, routing and network analysis, elevation, and static
  visualization."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# OSMnx

Use this repo skill when a task is about the `osmnx` package. The package helps you download, model, analyze, and visualize street networks and other OpenStreetMap features.

## Read first

- `references/package-overview.md` for the module map, public surface, and optional extras.
- `references/troubleshooting.md` for cross-cutting install/import, optional dependency, and service-limit failures.
- `references/repo-provenance.md` when you need to check whether this skill still matches the current checkout.
- `scripts/check_osmnx_environment.py --help` for the bundled environment diagnostic.

## Install and check

- Install the package itself with `python -m pip install osmnx`.
- If you are working from a local checkout, install it in editable mode with `python -m pip install -e .`.
- To cover the optional workflows used by this skill, install the relevant extras: `neighbors` for nearest-node/edge search, `entropy` for orientation entropy, `raster` for raster elevation, and `visualization` for static plots.
- Minimal import check: `python -I -c "import osmnx as ox; print(ox.__version__)"`
- Broader environment check: `python scripts/check_osmnx_environment.py`

OSMnx does not expose a general end-user CLI. Use Python imports and the bundled scripts in this skill instead.

## Route map

### `data-acquisition`
Use this when the user wants to fetch OSM data or plan a query.

Covers:
- `geocode`, `geocode_to_gdf`
- `graph_from_bbox`, `graph_from_point`, `graph_from_address`, `graph_from_place`, `graph_from_polygon`, `graph_from_xml`
- `features_from_bbox`, `features_from_point`, `features_from_address`, `features_from_place`, `features_from_polygon`, `features_from_xml`
- Nominatim/Overpass settings, cache behavior, rate limits, historical snapshots, custom filters, tags, and local OSM XML fallback

Read `sub-skills/data-acquisition/SKILL.md` for query planning and service-limit troubleshooting.

### `graph-modeling-io`
Use this when the user already has a graph or GeoDataFrames and needs validation, conversion, projection, simplification, truncation, or persistence.

Covers:
- graph and GeoDataFrame validation
- graph/GeoDataFrame conversion
- projection helpers
- simplification, intersection consolidation, truncation, and component selection
- GraphML, GeoPackage, and OSM XML save/load

Read `sub-skills/graph-modeling-io/SKILL.md` for data-model invariants and file-format rules.

### `routing-analysis`
Use this when the user wants nearest-node/edge matching, route solving, route GeoDataFrames, speeds, travel times, statistics, bearings, or orientation entropy.

Covers:
- `nearest_nodes`, `nearest_edges`
- distance helpers and edge-length preparation
- `add_edge_speeds`, `add_edge_travel_times`
- `shortest_path`, `k_shortest_paths`, `route_to_gdf`
- street statistics, bearings, and orientation entropy

Read `sub-skills/routing-analysis/SKILL.md` for weighting, optional nearest-neighbor dependencies, and route-analysis troubleshooting.

### `elevation-visualization`
Use this when the task is about node elevations, edge grades, or static plots.

Covers:
- raster or web elevation attachment
- edge grade calculation
- graph, route, figure-ground, footprint, and orientation plots
- headless plotting and image-output settings

Read `sub-skills/elevation-visualization/SKILL.md` for raster, matplotlib, and headless-output guidance.

## Common routing clues

- If the user mentions a city, address, boundary, building footprints, or transit stops, start with `data-acquisition`.
- If the user mentions a saved graph, GeoPackage, GraphML, OSM XML, CRS, projection, simplification, or validation, use `graph-modeling-io`.
- If the user mentions shortest paths, travel time, nearest nodes/edges, network statistics, or bearings, use `routing-analysis`.
- If the user mentions elevation, grades, or a saved image/plot, use `elevation-visualization`.
- If a task mixes workflows, complete prerequisites first and then route to the downstream sub-skill.

## Runtime notes

- Public package facts and the refresh baseline live in `references/repo-provenance.md`.
- The managed router metadata lives in `references/repo-routing-metadata.json`.
- The reusable smoke helpers live under `scripts/` or the owning sub-skill `scripts/` directories.
- Do not link runtime instructions to the original repository checkout; use the bundled references and scripts in this skill tree.

Files in this skill

  • SKILL.md4.6 KB
  • references/package-overview.md3.7 KB
  • references/repo-provenance.md1.4 KB
  • references/repo-routing-metadata.json391 B
  • references/troubleshooting.md2.8 KB
  • scripts/check_osmnx_environment.py5.3 KB
  • sub-skills/data-acquisition/SKILL.md4.4 KB
  • sub-skills/data-acquisition/references/query-settings.md5 KB
  • sub-skills/data-acquisition/references/troubleshooting.md3.9 KB
  • sub-skills/data-acquisition/references/workflows.md9.2 KB
  • sub-skills/data-acquisition/scripts/osmnx_query_template.py20.2 KB
  • sub-skills/elevation-visualization/SKILL.md2.7 KB
  • sub-skills/elevation-visualization/references/elevation-reference.md2.7 KB
  • sub-skills/elevation-visualization/references/plotting-reference.md4.1 KB
  • sub-skills/elevation-visualization/references/troubleshooting.md3.5 KB
  • sub-skills/elevation-visualization/scripts/elevation_plot_smoke.py8.2 KB
  • sub-skills/graph-modeling-io/SKILL.md3 KB
  • sub-skills/graph-modeling-io/references/data-model.md13.4 KB
  • sub-skills/graph-modeling-io/references/io-reference.md8.6 KB
  • sub-skills/graph-modeling-io/references/troubleshooting.md12 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…