pub struct Options {
    pub map_config: MapConfig,
    pub onstreet_parking: OnstreetParking,
    pub public_offstreet_parking: PublicOffstreetParking,
    pub private_offstreet_parking: PrivateOffstreetParking,
    pub include_railroads: bool,
    pub extra_buildings: Option<String>,
    pub skip_local_roads: bool,
    pub filter_crosswalks: bool,
    pub gtfs_url: Option<String>,
    pub elevation: bool,
}
Expand description

Configures the creation of a RawMap from OSM and other input data.

Fields

map_config: MapConfigonstreet_parking: OnstreetParkingpublic_offstreet_parking: PublicOffstreetParkingprivate_offstreet_parking: PrivateOffstreetParkinginclude_railroads: bool

OSM railway=rail will be included as light rail if so. Cosmetic only.

extra_buildings: Option<String>

If provided, read polygons from this GeoJSON file and add them to the RawMap as buildings.

skip_local_roads: bool

Only include highways and arterials. This may make sense for some region-wide maps for particular use cases.

filter_crosswalks: bool

Only include crosswalks that match a highway=crossing OSM node.

gtfs_url: Option<String>

Configure public transit using this URL to a static GTFS feed in .zip format.

elevation: bool

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.