OpenStreetMap logo OpenStreetMap

Changeset When Comment
69875119 about 21 hours ago

uic_ref in the Baltic states generally seems to be mis-tagged. The codes do not match with the values on https://www.interrail.eu/en/plan-your-trip/interrail-timetable#/ and https://www.cfl.lu/en-gb/timetable (open browser devtools to see them in the responses).

Before I start fixing them, I'd like to understand how this happened. Which data source did you use?

157056611 7 months ago

Meines Wissens nach existieren IBNRs nur für Bahnhöfe die in UIC Merits enthalten sind. Vermutlich liefert die Bahn in Nordmatzedonien keine Fahrplandaten an UIC Merits.

157056611 9 months ago

Hi!
I needed the ibnr to match stations from the Deutsche Bahn Hafas API to OSM. I found out the ibnrs by querying their API with a small script, but the API has gone defunct since.
You can however use the ÖBB endpoint instead with my fork of pyhafas (https://github.com/jbruechert/pyhafas/commits/zpcg-scraper/).

The script is then really simple:
```
from pyhafas import HafasClient
from pyhafas.profile import OEBBProfile
import sys

client = HafasClient(OEBBProfile())

locations = client.locations(sys.argv[1])
print([(s.name, s.id) for s in locations])
```

122745858 over 1 year ago

I found 7200012 as the UIC code from the Deutsche Bahn API, were did this information come from?