8template <
typename Properties>
9std::string weatherCityHitId(
const Properties& properties) {
10 const auto city = properties.find(
"weather_city_id");
11 if (city == properties.end() || !city->second.template is<std::string>())
13 const auto identity = city->second.template get<std::string>();
14 return identity.rfind(
"weather-city:", 0) == 0 ? identity : std::string{};