Here's a cool demo I saw recently that allows a cyclist to specify risk tolerance for busy roads, based on traffic data. Take the direct, busy route, or the roundabout way, using bike paths where available.
https://rc.nau.edu/cranc/?profile=ibc&layer=OpenStreetMap