Changes between Initial Version and Version 1 of Ticket #8768, comment 2
- Timestamp:
- 2016-06-12T20:28:46+02:00 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #8768, comment 2
initial v1 1 1 After this fix, i think the RoutingGraph addEdge method can not work accurately. 2 2 I think, the code block should be changed as below: 3 OsmEdge edge = new OsmEdge(way, from, to); 3 4 private void addEdge(Way way, Node from, Node to) { 5 6 OsmEdge edge = new OsmEdge(way, from, to); 4 7 double length = edge.getLength(); 5 8 edge.setSpeed(12.1); … … 11 14 + ") has weight: " + weight); 12 15 ((DirectedWeightedMultigraph<Node, OsmEdge>) graph).setEdgeWeight(edge, weight); 16 }


