Railway and waterway routing in GH 10.x

Noob question but how do I create profiles for trains and ships in the latest GraphHopper? I’m aware that alternatives like OpenRailRouting exists, but a coarse approximation suffices for my purposes.

Edit: to elaborate, I need to take 2 points (origin & destination), project them to nearest point in road/railway/waterway network, then find the shortest path from projected origin to projected destination.

If you’re talking public transport, then GraphHopper GTFS is your friend:

This is a bit overkill for me. I’m interested in routes for cargo trains/ships/trucks. Though for trains and ships the routes need not be super realistic.

The work from @easbar could be interesting for you: Extract WaySegmentParser from OSMReader by easbar · Pull Request #2448 · graphhopper/graphhopper · GitHub