Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Zverev <zverik@textual.ru>2017-06-16 13:18:02 +0300
committerIlya Zverev <zverik@textual.ru>2017-06-16 15:52:53 +0300
commit2d56af8a025c7be8e4cc41d6193727f64ed2049d (patch)
treec3f844b606111cb835d2f6a9bfeeecf14b471830 /indexer/road_shields_parser.cpp
parentce99f762e42abcd06d2b47dd38fc54353095ad04 (diff)
[generator] Deduplicate US State Highways shields
Diffstat (limited to 'indexer/road_shields_parser.cpp')
-rw-r--r--indexer/road_shields_parser.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indexer/road_shields_parser.cpp b/indexer/road_shields_parser.cpp
index 50fe93fc28..73c1d3657f 100644
--- a/indexer/road_shields_parser.cpp
+++ b/indexer/road_shields_parser.cpp
@@ -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)
{