spaghetti
spaghetti copied to clipboard
option to snap to nearest *n* locations
Currently, network.snapobservations() finds one single nearest location along the network to snap a point. As an option / improvement:
- locate the n nearest locations along the network
- add restricted links to the network on which a shortest path can enter/exit exactly twice
- calculate
network.allneighbordistances()from the update network in (2)
Gaboardi, J.D., Folch, D.C. and Horner, M.W. (2019), Connecting Points to Spatial Networks: Effects on Discrete Optimization Models. Geogr Anal. doi:10.1111/gean.12211
The is exactly related to #198 (pysal/pysal#650).