Merge pull request #6285 from Zverik/shield_us

[generator] Deduplicate US State Highways shields
This commit is contained in:
Roman Kuznetsov 2017-06-16 15:56:25 +03:00 committed by GitHub
commit 3aaac8c5a9

View file

@ -79,6 +79,13 @@ public:
RoadShieldType FindNetworkShield(std::string network) const
{
// Special processing for US state highways, to not duplicate the table.
if (network.size() == 5 && strings::StartsWith(network, "US:"))
{
if (std::find(kStatesCode.begin(), kStatesCode.end(), network.substr(3)) != kStatesCode.end())
return RoadShieldType::Generic_White;
}
// Minimum length for the network tag is 4 (US:I).
if (network.size() > 4)
{