#pragma once #include "base/geo_object_id.hpp" #include #include #include namespace routing { // Adds feature id and corresponding |osmId| to |osmIdToFeatureId|. // Note. In general, one |featureId| may correspond to several osm ids. // But for a road feature |featureId| corresponds to exactly one osm id. void AddFeatureId(base::GeoObjectId osmId, uint32_t featureId, std::map & osmIdToFeatureId); // Parses comma separated text file with line in following format: // , , , and so // on // For example: // 137999, 5170186, // 138000, 5170209, 5143342, // 138001, 5170228, bool ParseRoadsOsmIdToFeatureIdMapping(std::string const & osmIdsToFeatureIdPath, std::map & osmIdToFeatureId); bool ParseRoadsFeatureIdToOsmIdMapping(std::string const & osmIdsToFeatureIdPath, std::map & featureIdToOsmId); } // namespace routing