Hello, I was trying to experiment with my custom speed for each edges to see how the route changes with those speeds - Assign custom speed limit to all edges of the graph. I implemented 'AllEdgesIterator" to get details about the all the links in the graph. Now I want to reassign my custom values to specific links in that csv and import the speeds again to GH. I tried following:
Created a CustomCsvSpeedParser and added in DefaultTagParserFactory as
else if (name.equals(CustomCsvSpeedParser.KEY))
return new CustomCsvSpeedParser(lookup.getDecimalEncodedValue(CustomCsvSpeedParser.KEY), “./data/custom_speed.csv”);
CustomCsvSpeedParser.java (1.8 KB)
DefaultTagParserFactory.java (5.6 KB)
I am trying to implement in my RoutingExampleCustomSpeed class, but I can’t make it work.
RoutingExampleCustomSpeed.java (4.7 KB)
Am I trying the wrong way? Can you please direct me how I can make it work? I am new to Java, so may be I made mistakes along the way. Thank you so much in advance.