@Override protected boolean isCounted(final Edge edge) { return RouteTag.isFerry(edge); }
HighwayTag.PRIMARY.name().toLowerCase(), OneWayTag.KEY, "-1"); final Taggable ferryMotorVehicleNo = Taggable.with(RouteTag.KEY, RouteTag.FERRY.name().toLowerCase(), MotorVehicleTag.KEY, MotorVehicleTag.NO.name().toLowerCase());
public boolean matchFerry() { return RouteTag.isFerry(this); }
/** * This function will check various elements of the edge to make sure that we should be looking * at it. * * @param object * the edge to check whether we want to continue looking at it * @return {@code true} if is a valid object to look at */ private boolean validEdge(final AtlasObject object) { return object instanceof Edge // Ignore any airport taxiways and runways, as these often create a sink island && !Validators.isOfType(object, AerowayTag.class, AerowayTag.TAXIWAY, AerowayTag.RUNWAY) // Only allow car navigable highways and ignore ferries && HighwayTag.isCarNavigableHighway(object) && !RouteTag.isFerry(object) // Ignore any highways tagged as areas && !TagPredicates.IS_AREA.test(object); }
private boolean isHighwayOrFerry(final Way way) { final TagMap taggableWay = new TagMap(way.getTags()); return HighwayTag.isCoreWay(taggableWay) || RouteTag.isFerry(taggableWay); }