Segmenting roads into specific length and time segments
- This step runs through quickly (Less than 10 seconds).
- Controller code in Github
- You can read more about the execution logic in the segmentation part of this document
This is the first step for the Data preprocessing part. Most importan codepiece here is
processer:RouteSegmentor.java and also models: way.java and node.java .. In addition to that I use tests to make sure that distances between
segments are correct and visualization code.
This step basically takes ways and nodes and modifies them so that in each way the distance between sequential nodes is inside the predefined interval. PS the ways both in the input and ouput have only one direction.
Input example visualised in OSM

Result example visualised in OSM

Leave a Comment