GeoDesk now supports fast incremental updates

GOLs are now updatable, so you can keep your local copy current with the latest changes to OpenStreetMap.

Quick refresher: A Geo-Object Library is a compact single-file database that holds a snapshot of OpenStreetMap data. GOLs are a key part of the GeoDesk OSM Toolkit (SotM 2026 talk). They’re easy to build and fast to query, and now you can keep them up to date with daily, hourly or even minutely change files, automatically downloaded from a replication server.

This feature is available in GeoDesk’s GOL Tool 2.5 (download – 100% free and open source).

You will need to build your initial GOL using option --waynode-ids (-w), which preserves node IDs even for nodes without tags. For example:

gol build germany germany-latest.osm.pbf -w

After that, you can update the GOL to the latest available version:

gol update germany

By default, this uses the replication server specified in the original PBF. The planet file and Geofabrik extracts already contain suitable replication URLs.

If your PBF doesn’t have one, or you want to use a different service, you can provide an explicit URL. This is especially handy for the planet file, which defaults to minutely change files. If you’re catching up on a longer period, it makes sense to switch to the hourly (or daily) change stream:

gol update planet https://planet.openstreetmap.org/replication/hour

On a modern midrange workstation, applying a day’s worth of planet-wide changes takes about 5 minutes. This is considerably faster than the current workflow of patching the source PBF and rebuilding the GOL, which takes over an hour.

gol update also reduces the required disk space: Apart from the GOL itself (which in updatable form takes about 130 GB for the full planet), it only needs storage for the updated tiles, with no interim copies of the PBF data.

Updates for shorter intervals aren’t as efficient yet. I’m working on optimizations that should bring hourly updates to under 30 seconds and make true minute-by-minute replication practical.

Current limitations

  • Write access is exclusive, so you cannot query a GOL while an update is in progress. This restriction will disappear in GOL 3.0, which supports SQLite-style multi-reader/single-writer concurrency.

  • Updates for very long periods on large datasets may run out of memory. As a conservative rule of thumb, you should have 750 MB of RAM to hold a day’s worth of worldwide changes. Hence, if you’re bringing a month-old planet up to date, you should have at least 20 GB of RAM available. I’m incorporating functionality that automatically processes updates in multiple stages if memory is tight.


Download / GitHub / Documentation

As always, feedback is appreciated. In particular, I’d like to know: How often would you ideally update your GOLs, and what size datasets are you working with?

14 Likes

GOL Tool 2.5.2 fixes a bug that affects updates to implicitly resized super-relations (You’ll need to rebuild any GOL updated using a previous version).

Download

Can we also import and update metadata ? Being able to say “this place was edited by George 2 days ago” is very important to us at cartes.app. We want to show places are editable, and who did it.

3 Likes

Short answer: There’s currently no support for editing metadata.

I touched upon this in another thread, explaining why editing metadata isn’t stored in GOLs:

There are some technical reasons as well, but privacy is the primary one. Editing metadata is already public, of course, but making it trivially searchable across an entire planet dataset is another matter. It would become very easy to quickly establish who mapped what and when, and pseudonyms don’t necessarily protect a mapper’s identity. I don’t relish the idea of helping a regime identify people who mapped the “wrong” border.

I’m re-evaluating this stance for version 3.0, particularly the possibility of including each feature’s last-edit timestamp. Changeset IDs are another possibility, although these indirectly identify contributors. So the when part is definitely on the table, but I’m still hesitant about the who.

Is the main purpose of displaying the most recent mapper on cartes.app to help users assess data quality? If so, perhaps there’s a more privacy-friendly way to communicate an editor’s experience without exposing their identity. For example, some indication that the edit was made by a relatively new account, although this would require additional information from OSM.

For cartes.app, one possibility would be to omit the most recent mapper’s name from the details panel and let users follow the existing link to OSM when they need that information.

1 Like

It’s a feature I would like to keep. It’s I believe the strongest indicator for potential contributors that editing a place is possible.

The OSM API itself makes it trivial to expose a user’s contribution history. api.openstreetmap.org/api/0.6/changesets?display_name=maelito2000

I don’t think it Geodesk’s role to hide this, given it’s in the wild, on purpose. But I do understand your choice though :)