- Timestamp:
- 08/09/12 16:20:19 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RoutePlanning/HeuristicLab.Problems.RoutePlanning/3.3/Graph/OsmGraph.cs
r8434 r8462 71 71 public float GetWeight(Way edge, OsmVertex<Node> source, OsmVertex<Node> target) { 72 72 double distance = Utils.Distance(source.Node.Point, target.Node.Point); 73 //double distance = Utils.LocationDistance(source.Node.Point, target.Node.Point); 73 74 int speed = edge.GetMaxSpeed(); 74 75 double weight = (distance / speed) * 3.6; 76 //double weight = (distance / speed); 75 77 return (float)weight; 76 78 } … … 84 86 public float EstimatedCosts(OsmVertex<Node> source, OsmVertex<Node> target) { 85 87 double distance = Utils.Distance(source.Node.Point, target.Node.Point); 88 //double distance = Utils.LocationDistance(source.Node.Point, target.Node.Point); 86 89 int speed = 130; 87 90 double costs = (distance / speed) * 3.6; 91 //double costs = (distance / speed); 88 92 return (float)costs; 89 93 }
Note: See TracChangeset
for help on using the changeset viewer.