pysal.explore.spaghetti.Network.compute_snap_dist

Network.compute_snap_dist(pattern, idx)[source]

Given an observation snapped to a network edge, calculate the distance from the original location to the snapped location.

Parameters:
pattern : spaghetti.network.PointPattern

point pattern object

idx : int

point id