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.
Select the geometry column that describes the origins.
Select the column which contains for each origin a unique ID. The selected column will be returned in the result table and can be used to link back to the original data.
Select the geometry column that describes the destinations.
Select the column which contains for each destination a unique ID. The selected column will be returned in the result table and can be used to link back to the original data.
Select the column which contains the road network data.
Select the column which contains the speed for the road network.
The unit of the selected speed column.
Available options:
You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.
To use this node in KNIME, install the extension Geospatial Analytics Extension for KNIME from the below update site following our NodePit Product and Node Installation Guide:
A zipped version of the software site can be downloaded here.
Deploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to mail@nodepit.com.
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.