This script attempts to map the HVS network to OSM path components. The steps taken are:
- Download the GeoJSON of the network from the MRWA Open Data repository;
- Extract each feature and iterate over it;
- Convert the LineString(s) that make up the feature into a sequence of coordinates (in the format expected by OSRM);
- Call the online OSRM server's
match
function to determine a path that matches the coordinates on the OSM network (using a HMM approach); - Filter the result to get a list of lists corresponding to the OSM nodes traversed to achieve the path;
- Output to
output.csv
.
This script is currently a work-in-progress as part of a research project with other researchers.
Please contact Tristan Reed, GitHub username 'trisreed', for any queries or to be passed on to the other researchers.