luukvdmeer / sfnetworks

Tidy Geospatial Networks in R
https://luukvdmeer.github.io/sfnetworks/
Other
347 stars 20 forks source link

Snap points to the network using pseudo-edges #58

Open luukvdmeer opened 4 years ago

luukvdmeer commented 4 years ago

Is your feature request related to a problem? Please describe. The issues #54 and #57 discuss functions to snap spatial points either to their nearest node, or their nearest point on their nearest edge. Basically, that would replace the geometries of the original points with the geometries of the points they are snapped to. An alternative approach would be to create a "pseudo-edge" between the original point and the point they are snapped to, and include that edge in the network when routing.

See this visualization:

Screenshot from 2020-04-15 11-36-30