Osm nz

From thecolab-ai/.skills · View interactive version

Osm nz is an AI agent skill from the GitHub repository thecolab-ai/.skills. Query OpenStreetMap Overpass API for nearby points of interest, attractions, amenities, shops, and services around any NZ location, or raw OSM tags within a bbox or NZ area. Use when the task involves finding what's nearby — restaurants, cafes, parks, shops, transport stops, museums, beaches — given

How to use this skill

Skill file

OSM NZ — OpenStreetMap Nearby Search

Goal

Query OpenStreetMap data for points of interest around a location using the public Overpass API, with a lightweight deterministic CLI.

Use this when

Do not use this for

Preferred workflow

  1. Use nearby <lat> <lon> to find all POIs around a location with walking/driving times
  2. Filter by category with --category for targeted results
  3. Use --json for agent chaining, comparisons, or structured reports
  4. Sort by distance (default) and scan the closest options first

CLI

Run with:

python3 skills/osm-nz/scripts/cli.py <command> [flags]

Commands

Raw tag queries combine repeated filters with AND. repair=* means the

key exists; other values are literal strings, not regular expressions. Results

retain all tags and OSM IDs for nodes, ways and relations. Bboxes are WGS84 and

limited to 1 degree wide/high; results are capped at 100 with a truncated flag.

GeoJSON uses points: ways and relations use bounding-box centres, which can lie

outside the requested bbox. It does not return fence lines or building outlines.

JSON includes source URL, publisher, ODbL licence, UTC retrieval time and the

Overpass base timestamp as latest_data. Calls time out after 10 seconds;

Overpass queries allow 8 seconds and responses are capped at 8 MiB.

Category filters

| Filter | What it covers |

|--------|---------------|

| food | Restaurants, cafes, bars, pubs, fast food |

| grocery | Supermarkets, convenience stores, bakeries, butchers |

| outdoors | Parks, gardens, beaches, nature reserves |

| culture | Museums, galleries, theatres, libraries |

| attractions | Viewpoints, monuments, historic sites, zoos |

| sports | Sports centres, swimming pools, stadiums |

| shopping | Markets, malls, general retail |

| transport | Bus stops, train stations, ferry terminals |

| worship | Churches, mosques, temples, all places of worship |

If no --category is given, all categories are returned.

Examples:

python3 skills/osm-nz/scripts/cli.py nearby -36.8485 174.7633 --radius 2000
python3 skills/osm-nz/scripts/cli.py nearby -36.8485 174.7633 --category food --limit 10 --json
python3 skills/osm-nz/scripts/cli.py nearby -41.2865 174.7762 --category culture --radius 5000
python3 skills/osm-nz/scripts/cli.py categories
python3 skills/osm-nz/scripts/cli.py query --bbox 174.735,-36.905,174.745,-36.875 --tag barrier=fence --limit 5 --format geojson
python3 skills/osm-nz/scripts/cli.py query --bbox 174.72,-36.93,174.80,-36.84 --tag amenity=recycling --json
python3 skills/osm-nz/scripts/cli.py query --bbox 174.72,-36.93,174.80,-36.84 --tag 'repair=*' --json
python3 skills/osm-nz/scripts/cli.py query --bbox 174.72,-36.93,174.80,-36.84 --tag shop=second_hand --json

Resources

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.