Changeset 8512
 Timestamp:
 08/21/12 13:40:38 (12 years ago)
 Location:
 branches/RoutePlanning/HeuristicLab.Problems.RoutePlanning/3.3
 Files:

 3 edited
Legend:
 Unmodified
 Added
 Removed

branches/RoutePlanning/HeuristicLab.Problems.RoutePlanning/3.3/Graph/Edge.cs
r8488 r8512 62 62 case 21: 63 63 case 24: 64 case 16: 65 case 20: 66 case 15: 67 case 12: 64 68 case 0: 65 69 speed = 1; 66 70 break; 67 71 68 case 20:69 case 15:70 case 12:71 72 case 11: 73 case 14: 72 74 speed = 15; 73 75 break; 74 76 75 77 case 19: 76 case 16:77 78 speed = 30; 78 79 break; … … 85 86 break; 86 87 87 case 14:88 88 case 13: 89 89 speed = 50; 
branches/RoutePlanning/HeuristicLab.Problems.RoutePlanning/3.3/Graph/Graph.cs
r8509 r8512 146 146 //double distance = Utils.LocationDistance(source.Node.Point, target.Node.Point); 147 147 int speed = edge.GetMaxSpeed(); 148 double weight = (distance / speed) * 3.6;149 //double weight = (distance / speed);148 //double weight = (distance / speed) * 3.6; 149 double weight = (distance / speed); 150 150 return (float)weight; 151 151 } … … 161 161 target.Logitude, target.Latitude); 162 162 //double distance = Utils.LocationDistance(source.Node.Point, target.Node.Point); 163 int speed = 1 30;164 double costs = (distance / speed) * 3.6;165 //double costs = (distance / speed);163 int speed = 10; 164 //double costs = (distance / speed) * 3.6; 165 double costs = (distance / speed); 166 166 return (float)costs; 167 167 } 
branches/RoutePlanning/HeuristicLab.Problems.RoutePlanning/3.3/Osm.Data/OsmDataSource.cs
r8509 r8512 16 16 vertices = new Dictionary<long, Vertex>(); 17 17 18 ReadData V2();18 ReadData(); 19 19 } 20 20
Note: See TracChangeset
for help on using the changeset viewer.