diff options
author | mgsergio <mgsergio@yandex.ru> | 2016-07-08 16:06:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-08 16:06:53 +0300 |
commit | 96e7e73e1a4b48c9e3f81388b2c90b5f993be5d2 (patch) | |
tree | 631aacca17644e7c42c6eb724d19462a39038641 /generator | |
parent | aef5903ca959a9175c52e35c7746655319bebcba (diff) | |
parent | 1717fa143d0f196afc7c32bd24fc04c293b70a0a (diff) |
Merge pull request #3511 from Zverik/wheelchair
[types] Wheelchair accessibility types
Diffstat (limited to 'generator')
-rw-r--r-- | generator/osm2type.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/generator/osm2type.cpp b/generator/osm2type.cpp index 1fdcd45093..afa8e22b03 100644 --- a/generator/osm2type.cpp +++ b/generator/osm2type.cpp @@ -42,6 +42,8 @@ namespace ftype {"proposed", true}, // [highway=primary][construction=primary] parsed as [highway=construction] {"construction", true}, + // [wheelchair=no] should be processed + {"wheelchair", false}, // process in any case {"layer", false}, // process in any case @@ -215,7 +217,7 @@ namespace ftype public: enum EType { ENTRANCE, HIGHWAY, ADDRESS, ONEWAY, PRIVATE, LIT, NOFOOT, YESFOOT, NOBICYCLE, YESBICYCLE, BICYCLE_BIDIR, SURFPGOOD, SURFPBAD, SURFUGOOD, SURFUBAD, - RW_STATION, RW_STATION_SUBWAY }; + RW_STATION, RW_STATION_SUBWAY, WHEELCHAIR_YES }; CachedTypes() { @@ -237,6 +239,7 @@ namespace ftype m_types.push_back(c.GetTypeByPath({ "railway", "station" })); m_types.push_back(c.GetTypeByPath({ "railway", "station", "subway" })); + m_types.push_back(c.GetTypeByPath({ "wheelchair", "yes" })); } uint32_t Get(EType t) const { return m_types[t]; } @@ -541,6 +544,12 @@ namespace ftype } } + // Process yes/no tags. + TagProcessor(p).ApplyRules + ({ + { "wheelchair", "designated", [¶ms] { params.AddType(types.Get(CachedTypes::WHEELCHAIR_YES)); }}, + }); + bool highwayDone = false; bool subwayDone = false; bool railwayDone = false; |