Ejemplo 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)
Ejemplo 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)
Ejemplo 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)