48 std::optional<double>
ParseMaxSpeed(
const std::string &value);
std::optional< double > ParseMaxSpeed(const std::string &value)
Parse an OSM maxspeed value into m/s; "50", "50 km/h" and "30 mph".
LaneProfile ResolveProfile(const std::string &highway, const Tags &tags)
Resolve the lane layout from the way's tags, falling back to the class defaults.
bool IsDrivable(const std::string &highway)
True when the way carries motor traffic and should become a Road.
std::map< std::string, std::string > Tags
const ClassDefaults * FindClassDefaults(const std::string &highway)
Per highway class defaults, ported from profiles.py's _EU_CLASSES.
std::optional< double > shoulder
std::optional< double > sidewalk_width
std::optional< double > shoulder_inner
The lane layout an OSM way resolves to, before it is cut at junctions.
std::optional< double > speed_limit
std::optional< double > shoulder_inner
std::optional< double > sidewalk_width
std::optional< double > shoulder