This node uses the NetworkX library to create a distance matrix for the provided origins and destinations using the given road network. Prior computing the shortest path, origins and destinations are snapped to the closest point of the given road network. The matrix is then created by computing the shortest path between each snapped origin and all other reachable snapped destinations.
The returned distance is in meters and the duration in minutes. In addition to the travel distance and duration, the output table contains the distance in meters between each origin and destination and its corresponding snap point along the road network, which can be incorporated into a total travel time and duration.
The node projects the input coordinates to EPSG:3857 prior computing the length of each road and the snap distances of the origin and destinations.
If the origin and destination geometries are not a point geometry, the centroids will be automatically computed and used.