pub enum StreetCategory {
Show 19 variants Motorway, MotorwayLink, Trunk, TrunkLink, Primary, PrimaryLink, Secondary, SecondaryLink, Tertiary, TertiaryLink, Unclassified, Residential, LivingStreet, Service, Track, Road, Cycleway, Pedestrian, Path,
}
Expand description

The street-type, collecting all kind of default-values.

Street-types

Every edge will have a street-type with respective default speed-limit. See osm-wiki Key:highway for details and descriptions.

Accepted tags are listed below (sorted by descending priority) with respective default values. International equivalents are depicted here and shortened/extended below.

(*) means the street type is allowed or possible but uncomfortable or unusual.

street-typeRespective rural roads in GermanyRespective urban roads in Germanydefault speed limit in km/hfor vehiclesfor bicyclesfor pedestrians
Motorway“Autobahn”“Autobahn”130yesnono
MotorwayLink50yesnono
Trunk“Schnellstraße”“Schnellstraße”100yesnono
TrunkLink50yesnono
Primary“Bundesstraße” (national roads)Highest-level streets100yesyes(*)no
PrimaryLink30yesyes(*)no
Secondary“Landesstraße” (regional roads)Major streets70yesyes(*)no
SecondaryLink30yesyes(*)no
Tertiary“Kreisstraße” (local roads)Streets providing access to suburbs with priority70yesyesno
TertiaryLink30yesyesno
UnclassifiedStreets connecting townsIndustrial areas and providing access to neighborhoods without priority50yesyesno
ResidentialRoads to access houses50yesyesyes
LivingStreetPedestrians have right over cars15yesyesyes
ServiceRoads to something (e.g. a park)20yes(*)yesyes
TrackRoads mostly used for agricultural- or forestry-usesRoads mostly used for agricultural- or forestry-uses30yes(*)yes(*)yes
RoadUndefined roadsUndefined roads50yes(*)yes(*)yes(*)
CyclewayFor cyclesFor cycles25noyesno
PedestrianMainly for pedestriansMainly for pedestrians5noyes(*)yes
PathNon-specific path, e.g. for walkersNon-specific path, e.g. for walkers15noyes(*)yes

The mapping of given key:value-pairs to above street-types is too verbose to maintain it here in addition to the code. Unknown snippets are printed with a warning and their respective id.

Speed-limit

The speed-limit is used in km/h, which is the provided unit by osm.

Default: See table above

Distance

The distance is used in km, which is the provided unit by osm.

Default: Calculated by coordinates of involved nodes.

Tag oneway

This tag seems to be very creative. For defaults, see code.

Variants

Motorway

Trunk

Primary

Secondary

Tertiary

Unclassified

Residential

LivingStreet

Service

Track

Road

Cycleway

Pedestrian

Path

Implementations

return (is_oneway, is_reverse)

Trait Implementations

Formats the value using the given formatter. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

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.

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 inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

Converts the given value to a String. Read more

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.