About how to judge whether a road does not allow bicycles to pass

I’m confused about the OSM highway tag.

When I parse the shp file , I want to remove the edges that only allow cars to pass , but I find it hard to do so .

When I tried the graphhopper online demo, I find it can correctly distinguish bicycle roads and car roads .

I know that the map data source of graphhopper is OSM . I want to know how graphhopper made it.

Can anyone help me? Many thanks !

Take a look at the source code here - https://github.com/graphhopper/graphhopper/blob/dfdd92cf5e0d7f2c6c2289b98b646dfb6cfd36c1/core/src/main/java/com/graphhopper/routing/util/CarFlagEncoder.java - this shows the OSM tags that GraphHopper uses to determine suitability for cars. There are similar “FlagEncoders” for bicycle, foot, etc.

Powered by Discourse