Overpass-API icon indicating copy to clipboard operation
Overpass-API copied to clipboard

Diff URL for custom bz2 file

Open alterEgo123 opened this issue 1 year ago • 1 comments

Hello, I'm trying to setup Overpass API for North America and Europe regions. I merged the .bz2 files using osmium and i'm using that file for OVERPASS_PLANET_URL. Should I set for OVERPASS_DIFF_URL=. https://planet.openstreetmap.org/replication/minute/?

alterEgo123 avatar Dec 10 '24 16:12 alterEgo123

You could do that, but this would produce some overhead since you apply updates to non existing nodes/ways/relations. You could clip europe and north america from the diff file but it is no recommended since you would lose any way/relation which has no node in the change file.

Another option would be to get both diff files (e.g. https://download.geofabrik.de/europe-updates/ and https://download.geofabrik.de/north-america-updates/) and merge them with osmium (osmium cat file1.osc.gz file2.osc.gz -o combindedChange.osc.gz) or osmconvert (osmconvert *.osc.gz --merge-versions --out-osc | gzip > combindedChange.osc.gz)

arnesetzer avatar May 07 '25 10:05 arnesetzer