Struct MapConfig
pub struct MapConfig {
pub driving_side: DrivingSide,
pub country_code: String,
pub bikes_can_use_bus_lanes: bool,
pub inferred_sidewalks: bool,
pub street_parking_spot_length: Distance,
pub turn_on_red: bool,
pub include_railroads: bool,
}Fields§
§driving_side: DrivingSideIf true, driving happens on the right side of the road (USA). If false, on the left (Australia).
Note this is calculated by osm2streets! The value passed in is ignored; don’t do any work to set it.
country_code: StringThe two-letter ISO country code where this network exists. Note osm2streets doesn’t support areas that cross country boundaries.
Note this is calculated by osm2streets! The value passed in is ignored; don’t do any work to set it.
bikes_can_use_bus_lanes: bool§inferred_sidewalks: boolIf true, roads without explicitly tagged sidewalks may be assigned sidewalks or shoulders. If false, no inference will occur and separate sidewalks and crossings will be included.
street_parking_spot_length: DistanceStreet parking is divided into spots of this length. 8 meters is a reasonable default, but people in some regions might be more accustomed to squeezing into smaller spaces. This value can be smaller than the hardcoded maximum car length; cars may render on top of each other, but otherwise the simulation doesn’t care.
turn_on_red: boolIf true, turns on red which do not conflict crossing traffic (‘right on red’) are allowed
include_railroads: boolOSM railway=rail will be included as light rail if so. Cosmetic only.