You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's used quite a bit and i'm unsure if we should to treat it as impassable or at least avoided terrain for a few transportation types as these rocks might be quite large according to the OSM wiki.
Pebbles are stones rounded by waves or river flow. Typical size range from 2 to 8 cm.
That would make them even worse than gravel roads in my opinion.
Edit: the OSM wiki points out that Surface.GRAVEL might fit:
As result surface=gravel may refer to road where track ballast from old railway (or crushed stone similar to track ballast) was used, making it tricky or impassable for regular cars and bicycles.
I'm a little torn on grass pavers. Although they are obviously better than grass, I would still treat them as Surface.GRASS because on the one hand they can be overgrown and on the other hand they have to be treated differently in terms of accessibility.
I counted the amount of surface values we currently support and my result is that 15 values are defined in the enum. Would it be possible to utilize a 16th value?
The reason why I'm asking is because according to the wiki and taginfo we are covering the most important values except for metal and sett. Your proposual is to map metal to PAVED, which I don't think is a good idea. Metal may become very slippery when it is wet and then you cannot treat it like PAVED. The same is true for wood. Therefore I would utilise the 16th value for both of these values and call it 'METAL_OR_WOOD'.
Or could we spend even 5 bits? In this case we could define the often used sett, wood, metal, and more.
But I agree that it is probably worth increasing the granularity of our Surface enum. The fact that the average bikespeed parser uses this information is a good indicator that we need this level of detail:
I would not want to have such a dual value. But I agree with you that metal and especially wood are important and distinct cases where it would be nice if we can include them. And without any problems we should be able to add wood so that we still stay in 4 bits.
Activity
otbutz commentedon Apr 4, 2023
These are also missing:
Surface.GRAVEL?Surface.PAVING_STONES/Surface.GRASS?Surface.COBBLESTONEPebblestone should probably get it's own value:
It's used quite a bit and i'm unsure if we should to treat it as impassable or at least avoided terrain for a few transportation types as these rocks might be quite large according to the OSM wiki.
That would make them even worse than gravel roads in my opinion.Edit: the OSM wiki points out that
Surface.GRAVELmight fit:otbutz commentedon Apr 4, 2023
I'm a little torn on grass pavers. Although they are obviously better than grass, I would still treat them as
Surface.GRASSbecause on the one hand they can be overgrown and on the other hand they have to be treated differently in terms of accessibility.otbutz commentedon Apr 6, 2023
@ratrun as these are mostly cycling related, what's your opinion?
ratrun commentedon Apr 6, 2023
Thanks for pointing me on these planned changes.
I counted the amount of surface values we currently support and my result is that 15 values are defined in the enum. Would it be possible to utilize a 16th value?
The reason why I'm asking is because according to the wiki and taginfo we are covering the most important values except for
metalandsett. Your proposual is to mapmetaltoPAVED, which I don't think is a good idea. Metal may become very slippery when it is wet and then you cannot treat it likePAVED. The same is true forwood. Therefore I would utilise the 16th value for both of these values and call it 'METAL_OR_WOOD'.Or could we spend even 5 bits? In this case we could define the often used
sett,wood,metal, and more.If not then I agree with your proposual:
sett->COBBLESTONEunhewn_cobblestone->COBBLESTONEearth->DIRTpebblestone->GRAVELgrass_paver->GRASSotbutz commentedon Apr 6, 2023
I didn't change how we interpret most of them. This is the current logic:
graphhopper/core/src/main/java/com/graphhopper/routing/util/parsers/OSMSurfaceParser.java
Lines 43 to 50 in 8ceab61
But I agree that it is probably worth increasing the granularity of our Surface enum. The fact that the average bikespeed parser uses this information is a good indicator that we need this level of detail:
graphhopper/core/src/main/java/com/graphhopper/routing/util/parsers/BikeCommonAverageSpeedParser.java
Lines 46 to 71 in 8ceab61
otbutz commentedon Apr 11, 2023
@karussell should we introduce new enum constants or map to existing ones?
karussell commentedon Apr 12, 2023
@otbutz your PR looks good to me too.
I would not want to have such a dual value. But I agree with you that
metaland especiallywoodare important and distinct cases where it would be nice if we can include them. And without any problems we should be able to addwoodso that we still stay in 4 bits.otbutz commentedon Apr 14, 2023
@ratrun @karussell i've updated my PR and added
Surface.WOOD