I have a Postgis table containing a lot of MultiLineString features.
I would like to use that data to create a route between Point A and Point B. I assume there is no single feature, which allows to solve that problem. It means the route has to combined from two or more MultiLineString features.
How can I solve that problem?
It's not really possible to answer without the examples but I can point you to the direction of what I've done to solve a similar issue. I had a lot of MultiLineString that represented roads. I also had Points that represented a road node, where two roads merge.
You can find the shapefiles here: https://geoservices.ign.fr/route500#telechargement
I had to create a pgRouting table to calculate how to get from a road point to another.
Then fill the table with infos from the road multilinestrings:
You can then use dijstra to get the most optimal route:
I hope that helps! I think you can focus on how to transform a multilinestring to a routing table. You can use ST_EndPoint and ST_EndPoint to get the extremities