NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Is there a way to access and export previous versions of the map, for a specific country and date?

asked 14 Jun '21, 12:49

Mert%20Su's gravatar image

Mert Su
11112
accept rate: 0%


Use overpass turbo (https://overpass-turbo.eu/). Create a bounding box over your desired area, then use the following code and/or use the examples and resources on the webpage to tailor the code to isolate the data that you want (the below code loads all drinking water objects as they existed on 2016-01-01). Export the data to kml and upload to qgis!

[date:"2016-01-01T00:00:00Z"]; ( node [amenity=drinking_water] ({{bbox}}); way [amenity=drinking_water] ({{bbox}}); relation [amenity=drinking_water] ({{bbox}}); ); out body;

; out skel qt;

permanent link

answered 02 Aug '22, 12:37

lee1234566666's gravatar image

lee1234566666
111
accept rate: 0%

Previous versions of the data, yes; previous versions of the map, no.

This means you can get the data but making it into a map is your own responsibility. For getting the data for a specific point in time,

  1. download "history planet" file from https://planet.openstreetmap.org/pbf/full-history/ or alternatively download a regional history file from download.geofabrik.de (that server has history files for individual countries but you need to log in with your OSM account to access them)
  2. use the osmium command line tool (see https://docs.osmcode.org/osmium/latest/osmium-time-filter.html) to extract the data for one specific point in time from the history file

If you then want to make a map from the resulting file, you'd basically follow standard instructions for a tile server setup e.g. switch2osm.org.

If you want to generate a map that looks exactly like the map on OSM looked at the time, you will want to check out a suitable older version of the openstreetmap-carto map style.

permanent link

answered 14 Jun '21, 12:56

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Thank you, have a nice day.

(14 Jun '21, 14:24) Mert Su

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×315
×1

question asked: 14 Jun '21, 12:49

question was seen: 4,235 times

last updated: 02 Aug '22, 12:37

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum