Changes between Initial Version and Version 1 of Ticket #8768, comment 2


Ignore:
Timestamp:
2016-06-12T20:28:46+02:00 (10 years ago)
Author:
ksmlgl

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8768, comment 2

    initial v1  
    11After this fix, i think the RoutingGraph addEdge method can not work accurately.
    22I think, the code block should be changed as below:
    3 OsmEdge edge = new OsmEdge(way, from, to);
     3
     4private void addEdge(Way way, Node from, Node to) {
     5
     6                OsmEdge edge = new OsmEdge(way, from, to);
    47                double length = edge.getLength();
    58                edge.setSpeed(12.1);
     
    1114                                + ") has weight: " + weight);
    1215                ((DirectedWeightedMultigraph<Node, OsmEdge>) graph).setEdgeWeight(edge, weight);
     16        }