StrandedKitty / streets-gl

🗺 OpenStreetMap 3D renderer powered by WebGL2
http://streets.gl
MIT License
598 stars 44 forks source link

Add train traffic #109

Open benoit-dd opened 1 year ago

benoit-dd commented 1 year ago

as for plane traffic, add train traffic.

exemple carto.graou.info with data from https://data.sncf.com/pages/accueil/

I don't know if there is opendata for other countries

StrandedKitty commented 1 year ago

It might me impossible to accurately place trains on tracks. It's a very common sight to see a lot of parallel tracks that are located very close to each other, especially on train stations. GPS data (or whatever they use to track trains) might be not accurate enough, and the same goes for OSM ways that might not be mapped very accurately.

BTW, there's also an API for the NL: https://en.treinposities.nl/

westnordost commented 1 year ago

FYI there are various APIs in various countries / transport companies but note:

  1. live traffic has nothing to do with OpenStreetMap
  2. the APIs may not (all) be free to use
  3. there are countless APIs, to me it sounds like a project on its own to bundle them all together into one for easy (international) consumption. To my knowledge, there is none that is open source.