Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
su.openstreetmap.it / onosm.org recipes

su.openstreetmap.it / onosm.org recipes

These recipes are for su.openstreetmap.it, but they can be used for onosm.org (replace the URL where necessary).

Note: jq can be required by some recipes.

Get the first 100 unresolved notes (geojson)

curl 'https://api.openstreetmap.org/api/0.6/notes/search.json?q=su.openstreetmap.it&limit=100&closed=0' -o notes.geojson

Then import the geojson file into JOSM using the GeoJSON plugin.

Get the first 100 unresolved notes (links)

curl 'https://api.openstreetmap.org/api/0.6/notes/search.json?q=su.openstreetmap.it&limit=100&closed=0' |
    jq -r '.features[].properties.id | "https://www.openstreetmap.org/note/"+@text'

Get a random unresolved note and open it with your browser

xdg-open $(curl 'https://api.openstreetmap.org/api/0.6/notes/search.json?q=su.openstreetmap.it&limit=100&closed=0' |
    jq -r '.features[].properties.id | "https://www.openstreetmap.org/note/"+@text' |
    sort -R | head -n1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.