Missing Norwegian car ferries in OSMnx

35 Views Asked by At

I am trying to create a driving network locally using OSMnx for all of Norway. However, I am struggling to get car ferries to work correctly.

First of all, they don't get downloaded automatically, so I have to separately identify ferries using custom_filter='["route"~"ferry"]'. However, this includes both passenger ferries and car ferries, and there is no intuitive way to filter out car ferries only. Furthermore, it seems as though a lot of important car ferries are missing. An example being the ferry going from Dragsvik to Vangsnes, which can be seen in the OSM route network here: OpenStreetMap.org route. But does not appear using the following code:

center_point =  (61.19516867153809, 6.601287878776234)
G_balestrand_ferries = ox.graph.graph_from_point(center_point, dist=10000, dist_type='bbox',network_type='all',  custom_filter='["route"~"ferry"]', retain_all=True, truncate_by_edge=True)
G_balestrand_all = ox.graph.graph_from_point(center_point, dist=10000, dist_type='bbox',network_type='all', retain_all=True, truncate_by_edge=True)
m = folium.Map(location=center_point, zoom_start=12, )
ox.graph_to_gdfs(G_balestrand_all, nodes=False).explore(m=m, color="blue",)
ox.graph_to_gdfs(G_balestrand_ferries, nodes=False).explore(m=m, color="red")

Can anyone help me properly construct my graph network? Are these really missing or am I not fetching them correctly?

Thanks, Trygve

0

There are 0 best solutions below