Install
Works with Drupal: ^10.3 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
100.36 KB
MD5: c870b36ed017ba30685f3baea84d7638
SHA-1: 4bf7d325769e7c83f4790619c7022f6b8e854e12
SHA-256: 5103bb839890785f653ba422b31e8dc2304b90626e38c971f2db7edf3b40c06f
Download zip
154.72 KB
MD5: ed8af41540d4516c29bb3e615b371bbf
SHA-1: 6b6618b238cc7c71a08e2266d37ac6e0637860f9
SHA-256: c186ec7b91d3e54ce17507ff367e31064823bb90e858a273ff9808bac7338998
Release notes
First release candidate of the 1.0.x branch. The public API (OverpassApiInterface) and the three submodules are feature complete for 1.0.0; until the stable release only bug fixes are planned.
New
- Public API (#3618910: Expose Surface for use with OpenStreetmap Module et al.):
OverpassApiInterface(autowirable, type your services against it),execute()returning a result object that streams elements withiterateElements()and reports the data timestamp,getElements()/getElement()that batch ids into as few requests as possible (200 per request by default), detection of the runtime errors Overpass reports with an HTTP 200, server error bodies surfaced in exceptions, and every transport failure wrapped inOverpassApiException. - Overpass API UI (
overpass_api_ui, #3610872: Add overpass_api_ui submodule: Overpass query builder GUI (like QuickOSM)): a QuickOSM-inspired query builder at/admin/config/system/overpass-api/query-builder, with a Leaflet map, place search through Geocoder and result download. - Overpass API Preset (
overpass_api_preset, #3614000: Add overpass_api_preset submodule: Provide a Config Entity to save, reuse, and export Overpass queries): save, reuse and export Overpass queries as configuration entities, with a{{bbox}}shortcut and Load preset / Save as preset in the query builder. The Overpass QL generation moved to the main module. - Overpass API Feeds (
overpass_api_feeds, #3614002: Add overpass_api_feeds submodule: Allow creating Feeds sources directly from Query Builder (overpass_api_ui) to import OSM data): a Feeds fetcher and a streaming JSON parser that import Overpass results as Drupal entities, with OSM geometry as GeoJSON or WKT for Geofield, and Save as feed source in the query builder.
Upgrading from a beta
- Requires Drupal 10.3 or higher and PHP 8.1 or higher.
- New Composer dependency:
halaxa/json-machine, for streaming large responses. The submodule dependencies (Feeds, Geocoder, Leaflet) are listed undersuggest, so installing the main module does not pull them in. - Run
drush updatedb. Update 10001 adds theuser_agent,chunk_sizeanduse_slots_timeoutssettings; update 10002 moves the endpoint tohttps://overpass-api.de/api/if it is still the old http default (#3630443: Move UI dependencies to suggest, default to the https endpoint, and add CI). - New install defaults: 60 s timeout and 3 attempts (previously 180 s and 10). Existing sites keep their saved values. The settings page test query and Run query make a single attempt, and there is no
lock_timewait after the last attempt (#3630442: Lower the retry defaults and cap the retries in web requests). - The modules now appear in the OpenStreetMap package on the Extend page (previously OSM).
Development
- GitLab CI with phpcs, phpstan, eslint and cspell clean; services injected into the settings and query builder forms (#3630443: Move UI dependencies to suggest, default to the https endpoint, and add CI).
- Unit, kernel and functional tests for the API, the settings form, presets and the Feeds import.