a-b-street / abstreet

Transportation planning and traffic simulation software for creating cities friendlier to walking, biking, and public transit
https://a-b-street.github.io/docs/
Apache License 2.0
7.7k stars 343 forks source link

Cleanup map importing pipeline #231

Closed dabreegster closed 3 years ago

dabreegster commented 4 years ago

A backlog of related things to simplify OSM import.

dabreegster commented 4 years ago

is_road, get_lane_types, and get_rank are all coupled together in the assumptions they make. It's confusing. I'm considering a consolidated, but possibly much more complicated version that takes Tags and, if the thing should count as a road, returns the lane types in each direction and the rank (used for deciding stop sign priority and for some color schemes). Slight complication is that parking inference happens later in the importer (and it has to stay that way, because you can't decide the closest line to snap to without knowing all the relevant lines).