Exclude roads from snap

hello to all community
I’m trying to make snaps from a gps coordinate and the nearest road but I don’t understand how to exclude from the snap calculation of the starde types that I don’t want for example bike paths or trails.
Would you know how to help me?
thank you very much

Do you have an example link to GraphHopper Maps what you want to achieve? I do not fully understand your requirements.

Excluding road classes in the snap process is easy: you put them into snap_preventions, but maybe you mean exclude road classes from the routing calculation? This would be done using a custom model.

I would like to exclude the fact that when I start a routing if I am near a bike path I snap from the bike path instead of the road

Preferring bike paths for snapping is currently not possible.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.