Changeset 29633 in osm for applications/editors/josm/plugins/routing
- Timestamp:
- 2013-06-07T00:25:41+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/routing/src/com/innovant/josm/jrt/core/RoutingGraph.java
r29629 r29633 29 29 30 30 import java.util.ArrayList; 31 import java.util.Arrays; 32 import java.util.Collection; 31 33 import java.util.List; 32 34 import java.util.Map; … … 88 90 static Logger logger = Logger.getLogger(RoutingGraph.class); 89 91 92 private static Collection<String> excludedHighwayValues = Arrays.asList(new String[]{ 93 "bus_stop", "traffic_signals", "street_lamp", "stop", "construction", 94 "platform", "give_way", "proposed", "milestone", "speed_camera", "abandoned" 95 }); 96 90 97 /** 91 98 * Graph state … … 320 327 //if (!way.isTagged()) <---not needed me thinks 321 328 // return false; 322 323 return way.get("highway") != null || way.get("junction") != null 329 330 String highway = way.get("highway"); 331 332 return (highway != null && !excludedHighwayValues.contains(highway)) || way.get("junction") != null 324 333 || way.get("service") != null; 325 334
Note:
See TracChangeset
for help on using the changeset viewer.