Segmenting roads into specific length and time segments

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.

  • The input for this step is this file
  • Output for this step is this file

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