Skip to content

Avoid Features and Snapping #2141

@Chwiggy

Description

@Chwiggy

Is there an existing issue for this?

  • I have searched the existing issues

Feature/Enhancement Proposal

it would be really nice if one could exclude ferry routes and other commonly avoided features from snapping too and not just routing. Similar to the the flag that the directions endpoint offers.

{"options":{"avoid_features":["ferries"]}

If I want to snap to the routing graph, but want to avoid ferries in routing it doesn't help me if the snap endpoint snaps to an edge of the routing graph that's a ferry route.

Notably snapping to a ferry route is maybe a bit of a useless snap even if one is inclined to use it as part of a route. After all the ferry is not a permanent feature, and boarding a ferry mid transit is usually either frowned upon as a case of piracy or reserved for pilots or emergency situations.

Additional context

This crops up as an issue for climate action navigator code: https://gitlab.heigit.org/climate-action/utilities/mobility-tools/-/issues/1

Possible Implementation

No response

Forum Topic Link

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions