I’ve read this topic, waterways-path-possible/377/5. I’ve create class which extends CarFlagEncoder, and I don’t know which methods are need to modify. Any help will be great appreciate.
I think the key method from AbstractFlagEncoder to override would be public EncodingManager.Access getAccess(ReaderWay way)
and have that return EncodingManager.Access.WAY
for any way that you think is a waterway, and return EncodingManager.Access.CAN_SKIP
for anything else.
You’ll also need to override handleWayTags to set an appropriate speed, and handleNodeTags to set any barriers (or just return 0 to ignore them).
Hope this helps.
Okey I’ll try first. Thankyou for your help sir
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.