← Back to all sparks
O

osmdata

ANALYTICS
Velocity0.0

Download and import OpenStreetMap data as simple features into R

osmdata keeps tightening its Overpass query surface, breaking small things to get types right.

openstreetmapoverpass-apispatial-databreaking-changestype-correctness
Current state
The last two releases are the substantive ones. 0.4.0 lets `getbb()` resolve OSM relations via Wikidata ids, adds `filter_osm_user()` to Overpass query objects, and corrects metadata typing so timestamps are POSIXct rather than locale-dependent strings. 0.3.0 dropped the re-exported magrittr pipe, raised the R floor to 4.1 for the base pipe, and fixed polygon output to follow the OGC simple-features model instead of treating every ring as an independent polygon. Earlier entries are CRAN repairs and query-construction fixes.
Where it's heading
The pattern is deliberate correctness work: each release accepts a small breaking change to make returned objects match the standard they claim to follow, whether that is OGC polygon structure, POSIXct timestamps, or UTF-8 metadata columns. Alongside it, the Overpass query builder keeps gaining filters — by area, by out type, by osm_types, now by user and via Wikidata. The package is maturing rather than expanding.
Prediction
More Overpass filter and query-object composition helpers are the likeliest next additions, since that is where both recent releases put their new surface.

Recent moves

  1. 1mo ago

    osmdata 0.4.0

    Adds Wikidata id resolution in `getbb()` and a `filter_osm_user()` query filter, and converts metadata timestamps to POSIXct with UTF-8 user columns. Continues the correctness-plus-filters pattern that defines this window.

    View source ↗
  2. 11mo ago

    osmdata 0.3.0

    Drops the re-exported magrittr pipe, requires R 4.1 for the base pipe, and rebuilds polygon output around OGC rings so holes and multipolygons are represented properly. The polygon fix silently changes results for anyone relying on the old shape.

    View source ↗
  3. 2y ago

    osmdata 0.2.5 resubmitted after CRAN removal

    A rapid resubmission after 0.2.4 was pulled from CRAN, carrying a Nominatim 405 fix. Distribution housekeeping.

    View source ↗
  4. 3y ago

    osmdata 0.2.3 fixes test broken by sp deprecation

    Fixes a test broken by sp's move toward deprecation. Upstream drift, absorbed.

    View source ↗
  5. 3y ago

    osmdata 0.2.2 adds out:csv queries and centre coordinates

    A batch of query-construction fixes plus `out:csv` support across all Overpass query objects and lat/lon columns for centred queries. Early work on the query surface that 0.4.0 later extends.

    View source ↗
  6. 3y ago

    osmdata 0.2.1 deprecates nodes_only, fixes memory leaks

    Soft-deprecates the `nodes_only` parameter and patches memory leaks in the `osmdata_data_frame` C++ code. The deprecation completes in 0.3.0.

    View source ↗