| 168 | } |
| 169 | |
| 170 | void CameraCollector::CollectFeature(feature::FeatureBuilder const & fb, OsmElement const & element) |
| 171 | { |
| 172 | if (element.m_type == OsmElement::EntityType::Node) |
| 173 | { |
| 174 | if (ftypes::IsSpeedCamChecker::Instance()(fb.GetTypes())) |
| 175 | m_speedCameras.emplace(element.m_id, element); |
| 176 | } |
| 177 | else if (element.m_type == OsmElement::EntityType::Way) |
| 178 | { |
| 179 | if (fb.IsLine() && routing::IsCarRoad(fb.GetTypes())) |
| 180 | m_roadOsmIDs.push_back(element.m_id); |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | } // namespace routing_builder |