Overpass.jl

Julia wrapper for the OpenStreetMap Overpass API.

  • Query Overpass API
  • Support for Overpass Turbo shortcuts[1]
  • Meaningful error messages
  • Few dependencies

Inspired by the python packages overpy and overpass.

Install

julia> ]
pkg> add Overpass

Basic usage

using Overpass

Overpass.query(
    "[out:json];node[amenity=drinking_water]({{bbox}});out;",
    bbox=(48.22, 16.36, 48.22, 16.36)
)
"{\n  \"version\": 0.6,\n  \"generator\": \"Overpass API 0.7.62.4 2390de5a\",\n  \"osm3s\": {\n    \"timestamp_osm_base\": \"2025-01-20T14:26:14Z\",\n    \"copyright\": \"The data included in this document is from www.openstreetmap.org. The data is made available under ODbL.\"\n  },\n  \"elements\": [\n\n\n\n  ]\n}\n"

For more advanced usage see Tutorial or Reference

See also

Package
LightOSM.jlDownload, save and analyze networks via Overpass API
OpenStreetMapX.jlAnalyze OSM roads from .osm or .pbf files
OSMToolset.jlRead and analyze OSM XML files