question

Gabriel avatar image
0 Likes"
Gabriel asked Gabriel commented

Add River Routing Server to GIS

Hi,

I would like to use an OpenStreetMap server to find inland waterway routes. I tried to follow the answer to the question about the sea route server, but I did not understand. Does anyone have an example with OpenStreetMap servers?

the server is https://brouter.grade.de/#map=7/49.618/2.735/OpenRiverboatMap

Thanks a lot


FlexSim 24.2.2
gis navigator
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Allister Wilson avatar image
0 Likes"
Allister Wilson answered Gabriel commented

I'm not seeing anything suggesting that server allows external queries, the only thing I found was documentation for hosting your own brouter server.
Perhaps I'm just not looking in the right place though.

The project behind it appears to be this : abrensch/brouter: configurable OSM offline router with elevation awareness, Java + Android (github.com)

And it does mention an HTTP server you can run, which I'm guessing is what you're looking for, it also links to the source file which documents the server API (server endpoints), you'd need to emit requests from FlexSim which this specific server understands, and translate its responses back to what FlexSim expects.

I'm assuming this is the sea route server question you're referring to : How to connect GIS to a SeaRoute server? - FlexSim Community
You will need to follow the same process here as is described in that answer : extend the GIS navigator to format requests in the way your server expects to receive them, and interpret its responses.

Perhaps someone has done this before and will be able to give you a working example, but if not, maybe these pointers can get you going in the right direction.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Gabriel avatar image Gabriel commented ·
Thanks @Allister Wilson , I will try to run the server first and understand it before I actually start making requests from flexsim; Then I will try to follow the instructions on the sea route server
0 Likes 0 ·