# Ferry Hanko-Rostock

**URL:** <https://ask.openrouteservice.org/t/ferry-hanko-rostock/5497>\
**Category:** directions\
**Created:** [November 21, 2023, 8:42am UTC](https://ask.openrouteservice.org/t/ferry-hanko-rostock/5497 "2023-11-21T08:42:11Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![fretille](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/f/eada6e/32.png) [@fretille](https://ask.openrouteservice.org/u/fretille)\
**Post date:** [November 21, 2023, 8:42am UTC](https://ask.openrouteservice.org/t/ferry-hanko-rostock/5497/1 "2023-11-21T08:42:11Z")

</div>

Hello,

I tried the following request, Hanko - Rostock:  
client = openrouteservice.Client(key=ors\_key)  
coords = [[22.973871555170057, 59.82917237014954], [12.103831469404378,54.135415047047026] ]  
geometry = client.directions(coords,  
preference = ‘shortest’,  
profile=‘driving-hgv’,  
radiuses = [-1,-1])

strecke = convert.decode\_polyline(geometry[‘routes’][0][‘geometry’])[‘coordinates’]  
dmap = folium.Map(location=[55, 15], tiles=“OpenStreetMap”, zoom\_start=7)  
folium.PolyLine(reverse\_lon\_lat(strecke), opacity=0.4, weight=4).add\_to(dmap)  
dmap.save(‘test.html’)

The result is that I don’t get the ferry Hanko-Rostock for the route, also with other parameters, car or fastest.  
It seems to me that routing should be done via the the ferry line.  
The ferry line is here:

> **[Way: ‪Rostock - Hanko‬ (‪1061999837‬) | OpenStreetMap](https://www.openstreetmap.org/way/1061999837)**
>
> OpenStreetMap is a map of the world, created by people like you and free to use under an open license.

Thank you

---

<div class="post-metadata">

**Author:** ![sascha](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/sascha/32/715_2.png) [@sascha](https://ask.openrouteservice.org/u/sascha)\
**Post date:** [November 21, 2023, 10:05am UTC](https://ask.openrouteservice.org/t/ferry-hanko-rostock/5497/2 "2023-11-21T10:05:54Z")

</div>

Hi,

The ferry is tagged `vehicle=no` on OSM and, therefore, not available for driving-hgv.

Best regards,

---

<div class="post-metadata">

**Author:** ![fretille](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/f/eada6e/32.png) [@fretille](https://ask.openrouteservice.org/u/fretille)\
**Post date:** [November 21, 2023, 10:32am UTC](https://ask.openrouteservice.org/t/ferry-hanko-rostock/5497/3 "2023-11-21T10:32:09Z")

</div>

But the ferry is also tagged hgv = true and trailer = true!  
So we have vehicle = no and hgv= true on this way. Can this be coherent ?

We are analyzing freight traffic, and there is some freight going over this ferry in “reality”. How can I route freight in trailers/hgv over this ferry?  
According to the wiki, hgv = yes (it’s true here) means: “Roads and other objects accessible to trucks”

---

<div class="post-metadata">

**Author:** ![sascha](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/sascha/32/715_2.png) [@sascha](https://ask.openrouteservice.org/u/sascha)\
**Post date:** [November 21, 2023, 11:47am UTC](https://ask.openrouteservice.org/t/ferry-hanko-rostock/5497/4 "2023-11-21T11:47:02Z")

</div>

Hi,

you are right. I have overlooked the other tags. This might be a bug in the tag handling. I’ve opened an issue here: [Ferry routing tag handling · Issue #1616 · GIScience/openrouteservice · GitHub](https://github.com/GIScience/openrouteservice/issues/1616)

Best regards,

---

<div class="post-metadata">

**Author:** ![fretille](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/f/eada6e/32.png) [@fretille](https://ask.openrouteservice.org/u/fretille)\
**Post date:** [November 21, 2023, 12:44pm UTC](https://ask.openrouteservice.org/t/ferry-hanko-rostock/5497/5 "2023-11-21T12:44:22Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![Stefan](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/stefan/32/1529_2.png) [@Stefan](https://ask.openrouteservice.org/u/Stefan)\
**Post date:** [November 24, 2023, 2:56pm UTC](https://ask.openrouteservice.org/t/ferry-hanko-rostock/5497/6 "2023-11-24T14:56:39Z")

</div>

> [@fretille](#):
>
> So we have vehicle = no and hgv= true on this way

This does not make sense at all. The vehicle=no tag implicitly forbids all vehicles:

> Legal access restriction for all types of land-based vehicles not operated upon rails.

which overrules hgv=true. In order to solve this, I don’t think it’s a bug as @sascha filed, but the tag vehicle=no should be removed or changed into yes.

---

<div class="post-metadata">

**Author:** ![andrzej](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/andrzej/32/10_2.png) [@andrzej](https://ask.openrouteservice.org/u/andrzej)\
**Post date:** [December 4, 2023, 11:40am UTC](https://ask.openrouteservice.org/t/ferry-hanko-rostock/5497/7 "2023-12-04T11:40:23Z")

</div>

Actually, more specific OSM access tags such as `hgv` override the more generic ones, in this case `vehicle`.

I think the issue here might not be the tagging of the highways, but rather the barriers, e.g. [Node: 9451269151 | OpenStreetMap](https://www.openstreetmap.org/node/9451269151). Please note that the route is found once the starting point is set past the lift gate.

---

<div class="post-metadata">

**Author:** ![jschnell](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/jschnell/32/971_2.png) [@jschnell](https://ask.openrouteservice.org/u/jschnell)\
**Post date:** [December 4, 2023, 12:53pm UTC](https://ask.openrouteservice.org/t/ferry-hanko-rostock/5497/8 "2023-12-04T12:53:49Z")

</div>

Compare [Ferry - Mainland France to Corse (Corsica)](https://ask.openrouteservice.org/t/ferry-mainland-france-to-corse-corsica/5480) which had a similar issue.

---

<div class="post-metadata">

**Author:** ![sascha](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/sascha/32/715_2.png) [@sascha](https://ask.openrouteservice.org/u/sascha)\
**Post date:** [December 4, 2023, 4:23pm UTC](https://ask.openrouteservice.org/t/ferry-hanko-rostock/5497/9 "2023-12-04T16:23:45Z")

</div>

> [@andrzej](#):
>
> I think the issue here might not be the tagging of the highways, but rather the barriers, e.g. [Node: 9451269151 | OpenStreetMap](https://www.openstreetmap.org/node/9451269151). Please note that the route is found once the starting point is set past the lift gate.

It is certainly related to this barrier. On the OSM-website, none of the routing engines (Valhalla, GraphHopper, OSRM) is able to pass this gate. I guess it is related to the tag “access=permit”. According to [Tag:access=permit - OpenStreetMap Wiki](https://wiki.openstreetmap.org/wiki/Tag:access=permit?uselang=en) the intended usage described on is that the routing should pass through the gate, however, the actual usage is often equivalent to “access=private”. An easy fix is proposed in the corresponding github isse.
