itinero / routing2

The next version of the Itinero route planner.
Apache License 2.0
7 stars 1 forks source link

How to snap in the vicinity of non-accessible roads #25

Closed pietervdvn closed 2 years ago

pietervdvn commented 3 years ago

I had a testcase where the target point lies close to a road non-accessible to the profile under testing. Ideally, it would be possible to snap to the closest routable road. However, this testcase would snap to the non-routable road, causing the test to fail.

To progress:

xivk commented 3 years ago

I think the snapper can be configured to take one or more profiles:

https://github.com/itinero/routing2/blob/6222bf8b98bc0653fdc31fd2fd6e0bbcb85cb53d/src/Itinero/Snapping/Snapper.cs#L33