Esempio n. 1
0
def get_city_name(service, city_id, weather_lang):
    if service == 0:
        return  gismeteo.get_city_name(city_id, weather_lang)
    if service == 1:
        return  weather_com.get_city_name(city_id, weather_lang)
    if service == 2:
        return  accuweather.get_city_name(city_id, weather_lang)
Esempio n. 2
0
def get_city_name(service, city_id):
    if service == 'Gismeteo':
        return gismeteo.get_city_name(city_id)
    if service == 'AccuWeather':
        return accuweather.get_city_name(city_id)
    if service == 'OpenWeatherMap':
        return openweathermap.get_city_name(city_id)
    if service == 'Yr':
        return yr.get_city_name(city_id)
Esempio n. 3
0
def get_city_name(service, city_id):
    if service == 'Gismeteo':
        return  gismeteo.get_city_name(city_id)
    if service == 'AccuWeather':
        return  accuweather.get_city_name(city_id)
    if service == 'OpenWeatherMap':
        return  openweathermap.get_city_name(city_id)
    if service == 'Yr':
        return yr.get_city_name(city_id)