fn is_cycleway(road: &RawRoad, raw: &RawMap) -> bool {
    // Don't attempt to merge roads with these. They're usually not filled out for cyclepaths.
    if !road.turn_restrictions.is_empty() || !road.complicated_turn_restrictions.is_empty() {
        return false;
    }

    let mut bike = false;
    for spec in get_lane_specs_ltr(&road.osm_tags, &raw.config) {
        if spec.lt == LaneType::Biking {
            bike = true;
        } else if spec.lt != LaneType::Shoulder {
            return false;
        }
    }
    bike
}
// Rather bruteforce way of figuring this out... is_cycleway logic lifted from Road, unfortunately.
// Better than repeating the OSM tag log from get_lane_specs_ltr.
Rather bruteforce way of figuring this out... is_cycleway logic lifted from Road, unfortunately.
Better than repeating the OSM tag log from get_lane_specs_ltr.
Rather bruteforce way of figuring this out ... is_cycleway logic lifted from Road unfortunately . Better than repeating the OSM tag log from get_lane_specs_ltr .
fn is_cycleway(road: &RawRoad, raw: &RawMap) -> bool {
    // Don't attempt to merge roads with these. They're usually not filled out for cyclepaths.
    if !road.turn_restrictions.is_empty() || !road.complicated_turn_restrictions.is_empty() {
        return false;
    }
    let mut bike = false;
    for spec in get_lane_specs_ltr(&road.osm_tags, &raw.config) {
        if spec.lt == LaneType::Biking {
            bike = true;
        } else if spec.lt != LaneType::Shoulder {
            return false;
        }
    }
    bike
}
fn is_cycleway ( road : & RawRoad , raw : & RawMap ) -> bool { // Don't attempt to merge roads with these. They're usually not filled out for cyclepaths. if ! road . turn_restrictions . is_empty ( ) || ! road . complicated_turn_restrictions . is_empty ( ) { return false ; } let mut bike = false ; for spec in get_lane_specs_ltr ( & road . osm_tags , & raw . config ) { if spec . lt == LaneType :: Biking { bike = true ; } else if spec . lt != LaneType :: Shoulder { return false ; } } bike }
Rather bruteforce way of figuring this out... is_cycleway logic lifted from Road, unfortunately.
Rather bruteforce way of figuring this out ... is_cycleway logic lifted from Road unfortunately .
road
&RawRoad
raw
&RawMap