Replies: 8 comments 12 replies
-
|
Using https://github.com/railnova/osrm-train-profile and with the help of some LLM, I got this working:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Instead of showing the tags, I would like to show icons, according to the YAML configurations. But I don't quite understand where the conversion is taking place and how I can replicate it.... At first I thought I could just convert in JS using the YAML, but when the map is loaded, the YAML files are not available to the JS. @hiddewie Is there something obvious I am not seeing? |
Beta Was this translation helpful? Give feedback.
-
|
This little update is probably more for here, but since all of the tools shown above are basically useful for it as well, I'll just add it here:
(In styles.mjs (file type not supported): 'icon-rotation-alignment': 'map' and 'icon-pitch-alignment': 'viewport' for the signal medium and high) |
Beta Was this translation helpful? Give feedback.
-
|
Here's a little video after I added tracking. Next: see what's on our route in the next 1500m https://www.youtube.com/watch?v=xJOv0l8QGGY @hiddewie You're going to really like this! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.








Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey!
Perhaps it can be considered to add some basic geometry tools into the front-end.
Or even better something similar to https://signal.eu.org/osm/#locs=48.690960,6.295166;53.443899,6.725006
It could be used to calculate distances between two track elements, a geographic location and track element or calculate a location x-distance from an element/location. It also allows us to extrapolate track KMs.
The routing part an sich is also very interesting and would fit greatly into an ORM-toolbox. Currently it can take electrification, gauge and (non-)HSL into account. It could be considered to take train protection into account too.
It could also be groundworks for an in-transit mode, which with this could be generalised, i.e. not requiring the use of preprogramed OSM rail relations. Instead it could take the current location and destination into account, with the possibility of adding intermediate locations.
https://github.com/NTag/trainmap
https://github.com/Project-OSRM/osrm-backend
https://github.com/geofabrik/OpenRailRouting
Beta Was this translation helpful? Give feedback.
All reactions