Am 11.10.19 um 12:44 schrieb Jóhannes Birgir Jensson:
> I'm trying to figure out how to get historical entries of bus stops in
> Iceland but other than getting lots of old snapshots and parsing them I'm out
> of ideas.
> Any optimal route to do this?
Take the historic planet file extract for Iceland from
iterate over the contents of the file. It is ordered by type (node, way,
relation), ID and version. If an object with ID n is visible has
highway=bus_stop in version v and not visible (i.e. deleted) in version
n+1, you have found one of the bus stops you are looking for.
There are multiple options how to do that. The following list is sorted
by performance (slowest last):
(1) Write a small C++ programme using the Osmium C++ library. You can
an example. The exmaple reads a history file and counts objects which
had building=* in version v but building=yes in version v+1 if version
v+1 was uploaded by a user with a given UID.
(2) The same but in Python using Pyosmium.
(3) osmium cat --output-format=opl iceland-internal.osh.pbf \
| grep -A 1 "highway=bus_stop" \
| grep -v "highway=bus_stop"
Michael Reichert www.geofabrik.de
Geofabrik GmbHHandelsregister: HRB Mannheim 703657
Amalienstr. 44Geschaeftsfuehrung: C. Karch, F. Ramm
76133 Karlsruhe Tel: 0721-1803560-3
reich...@geofabrik.de Fax: 0721-1803560-9
Description: OpenPGP digital signature
dev mailing list