/getmapstack:nearbyfrom getmapstack
Finds places of interest near a location using self-hosted OpenStreetMap data via the getmapstack Docker container. Covers routing, geocoding, and tile rendering without external APIs.
Ships in getmapstack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
One Docker image per country, carrying OpenStreetMap routing, geocoding and a vector
map. The container publishes a single port, 4326, and answers under three prefixes:
/valhalla routes, /photon geocodes, /martin serves tiles, styles and rendered
images. Nothing leaves the machine, and there is no API key.
Pick the country that contains the place in question: an image covers one country, so
a search cannot cross a border. The image is ghcr.io/roma8ok/getmapstack/<slug>,
where the slug is the country's English name in lower case with hyphens (cyprus,
south-korea, united-kingdom); the README at https://github.com/roma8ok/getmapstack
lists the countries that have one, and is the place to look when a pull fails.
docker run -d --name getmapstack -p 4326:4326 ghcr.io/roma8ok/getmapstack/cyprus
until curl -sf localhost:4326/healthz | grep -q ok; do sleep 2; done
The wait is not optional: the geocoder opens its index at startup, which takes seconds
for a small country and minutes for the largest. A container named getmapstack that
is already running for another country holds both the name and the port: remove it
first with docker rm -f getmapstack.
Copy this checklist and tick items off as you go.
- [ ] 1. Anchor - the point the search is centred on
- [ ] 2. Tag - an OSM key:value, proposed and then verified
- [ ] 3. Coverage - one call, or the whole area
- [ ] 4. Render
1. Anchor. Coordinates as given, or a place name resolved through the geocoder:
curl -s "localhost:4326/photon/api?q=Nicosia&limit=1&lang=en" \
| jq '.features[0].geometry.coordinates'
2. Tag. Features are found by their OSM tag, never by putting the kind of thing
you want into a text search. q=supermarket matches the word in a name: it returns
shops called "... Supermarket" and misses every chain whose name does not contain the
word. Propose the tag from what you know about OSM tagging, then verify it against
this container before trusting it:
curl -s "localhost:4326/photon/reverse?lat=35.1856&lon=33.3823&radius=2&limit=50&osm_tag=shop:supermarket&lang=en" \
| jq '[.features[].properties.name]'
An empty answer means the tag is wrong far more often than it means the area is
empty. amenity:kindergarden returns nothing; amenity:kindergarten returns
kindergartens. Correct the tag and verify again before reporting that there is nothing
nearby.
The tag is typed by a contributor, so the answer also carries the occasional feature that plainly is not the thing asked for. Report those with the rest and say which look mistagged; never filter the answer by words in a name.
3. Coverage. Photon 1.2.1 returns at most 50 features per call whatever limit
asks for, on both /photon/api and /photon/reverse, and nothing in the response says
it truncated. An answer of exactly 50 is a truncated answer, not a count.
Run the bundled script rather than assembling the calls by hand. It queries the radius, and where the ceiling is hit it re-covers that area with smaller overlapping queries until the ceiling is clear, then deduplicates and sorts by distance:
scripts/nearby.sh --lat 35.1856 --lon 33.3823 --radius 2 --tag shop:supermarket > found.json
It writes a GeoJSON FeatureCollection to stdout. Paths in this skill are relative to the
skill's own directory, so run the script from there or give its full path. --help has
the rest, and its exit code separates a bad argument from a refused request from an
unreachable container.
4. Render. Hand found.json to the map skill: it copies a page template and the
file into the running container and serves them from there. To visit what you found in
the best order, hand the same file to the route skill first.
map skillroute skillEvery other method the container serves - routes, travel-time areas, matrices, static images, the tile and style endpoints - is documented in that same README: https://github.com/roma8ok/getmapstack
evals/nearby-ceiling/graders/criteria.md (opens in a new tab)evals/nearby-ceiling/prompt.md (opens in a new tab)evals/nearby-flagship/graders/criteria.md (opens in a new tab)evals/nearby-flagship/prompt.md (opens in a new tab)evals/nearby-tag/graders/criteria.md (opens in a new tab)evals/nearby-tag/prompt.md (opens in a new tab)evals/trigger_eval.json (opens in a new tab)references/nearby.md (opens in a new tab)scripts/nearby.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub roma8ok/getmapstack --plugin getmapstack3 skills in this plugin
/mapUse when GeoJSON - features a search found, a route, any FeatureCollection - should be shown on a map served by a getmapstack container on localhost:4326 - "show these on a map", "draw this GeoJSON", "put the route on a map". Not for finding the features or computing the route; those are their own skills./routeUse when a request needs a route from self-hosted map data - "how do I get from A to B", "how long is the drive", "visit these places in the best order", "plan a walking tour of what we found nearby" - and when the route should be shown on a map. Takes the stops a nearby search produced. Triggers on route or optimized_route requests to a getmapstack container on localhost:4326; not on travel-time areas, matrices, or building the images.Other plugins' skills for the same job