osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.54k stars 1k forks source link

Render highway shields for Minnesota county roads and CSAH #16200

Open bhankerson opened 1 year ago

bhankerson commented 1 year ago

πŸš€ feature request

Description

For road shields, OsmAnd appears to first search for a route reference, if there is no route the way reference is used. In Minnesota (and maybe across the country?), county roads are rendered with a blue pentagon and yellow numbers according to the route network=US:<state>:<county>. In Minnesota, there areβ€”unfortunately for mapping purposesβ€”two types of county-level road networks, "County Roads" (CR) and "County State Aid Highways" (CSAH). Minnesota OSM mappers have been updating such routes with network=US:MN:<county>:CR or network=US:MN:<county>:CSAH, respectively. This causes OSM to render the route shields as a black number with no (or transparent) background shield, I assume because it doesn't recognize the route designation. Besides being the wrong highway shield, this number is hard to see while navigating (and pretty much invisible in nighttime mode).

Solution

Update the Minnesota highway shield rendering to look for *:CR or *:CSAH in the network name. FYI: CR shields are white squares with black numbers, and CSAH shields are blue pentagons with yellow numbers. The fallback rendering should be for the way ref=CR 000 or ref=CH 00 as the accepted reference names for CR and CSAH, respectively.

Notes

The goal for Minnesota OSM is to completely replace all network=US:MN:<county> with network=US:MN:<county>:CR or network=US:MN:<county>:CSAH. Until that time, you may want to leave the rendering for network=US:MN:<county> as a blue pentagon, or make it a generic white pillow (my suggestion, as this would make it easier to see which routes need updating), or whatever you deem best.

Thank you!

ajfroggie commented 1 year ago

Found this GibHub issue doing an unrelated Google search. As a native Minnesotan and transportation researcher, I should point out that not every county in Minnesota uses the standard of the white square for county routes and the blue pentagon for CSAH routes. Hennepin, for example, uses the blue pentagon for all CR and CSAH, while others like Olmsted use the white square for all their CR and CSAH routes. And at one point in the not-too-distant past, Chippewa county used white squares in one half of the county and blue pentagons in the other half...I'm not sure if this is still the case.