For more details please check here.
- By calling Weather service
/**
* @var $weather \Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather\WeatherInterface
*/
$data = $weather->fetchWeatherDataByCityName(
'London'
);
- By rendering controller inside template
{{ render(
controller(
'netgen_open_weather_map.controller.weather:byCityName',
{
'cityName': 'London'
}
)
) }}
- Or via Symfony route
/netgen/openweather/weather/cityname/London
- By calling Weather service
/**
* @var $weather \Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather\WeatherInterface
*/
$data = $weather->fetchWeatherDataByCityId(
2172797
);
- By rendering controller inside template
{{ render(
controller(
'netgen_open_weather_map.controller.weather:byCityId',
{
'cityId': '2172797'
}
)
) }}
- Or via Symfony route
/netgen/openweather/weather/cityid/2172797
- By calling Weather service
/**
* @var $weather \Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather\WeatherInterface
*/
$data = $weather->fetchWeatherDataByGeographicCoordinates(
35, 139
);
- By rendering controller inside template
{{ render(
controller(
'netgen_open_weather_map.controller.weather:byGeographicCoordinates',
{
'latitude': 35,
'longitude': 139
}
)
) }}
- Or via Symfony route
/netgen/openweather/weather/coordinates/35/139
- By calling Weather service
/**
* @var $weather \Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather\WeatherInterface
*/
$data = $weather->fetchWeatherDataByZipCode(
94040
);
- By rendering controller inside template
{{ render(
controller(
'netgen_open_weather_map.controller.weather:byZipCode',
{
'zipCode': 94040
}
)
) }}
- Or via Symfony route
/netgen/openweather/weather/zipcode/94040/us
- By calling Weather service
/**
* @var $weather \Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather\WeatherInterface
*/
$data = $weather->fetchWeatherDataForCitiesWithinRectangleZone(
array(12, 32, 15, 37, 10), 'yes'
);
- By rendering controller inside template
{{ render(
controller(
'netgen_open_weather_map.controller.weather:byRectangleZone',
{
'longitudeLeft': 12,
'latitudeBottom': 32,
'logitudeRigth': 15,
'latitudeTop': 37,
'mapZoom': 10,
'cluster': 'yes'
}
)
) }}
- Or via Symfony route
/netgen/openweather/weather/rectanglezone/12/32/15/37/10/yes
- By calling Weather service
/**
* @var $weather \Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather\WeatherInterface
*/
$data = $weather->fetchWeatherDataForCitiesInCycle(
55.5, 37.5, 'yes', 10
);
- By rendering controller inside template
{{ render(
controller(
'netgen_open_weather_map.controller.weather:byCircle',
{
'latitude': 55.5,
'longitude': 37.5,
'cluster': 'yes',
'numberOfCities': 10
}
)
) }}
- Or via Symfony route
/netgen/openweather/weather/circle/55.5/37.5/yes/10
- By calling Weather service
/**
* @var $weather \Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather\WeatherInterface
*/
$data = $weather->fetchWeatherDataForSeveralCityIds(
array(524901, 703448, 2643743)
);
- Or via Symfony route
netgen/openweather/weather/cityids?cities=524901,703448,2643743
For more details please check here.
- By calling HourForecast service
/**
* @var $hourForecast \Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather\HourForecastInterface
*/
$data = $hourForecast->fetchForecastByCityName(
'London'
);
- By rendering controller inside template
{{ render(
controller(
'netgen_open_weather_map.controller.hour_forecast:getForecastByCityName',
{
'cityName': 'London'
}
)
) }}
- Or via Symfony route
/netgen/openweather/hourforecast/cityname/London
- By calling HourForecast service
/**
* @var $hourForecast \Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather\HourForecastInterface
*/
$data = $hourForecast->fetchForecastByCityId(
524901
);
- By rendering controller inside template
{{ render(
controller(
'netgen_open_weather_map.controller.hour_forecast:getForecastByCityId',
{
'cityId': 524901
}
)
) }}
- Or via Symfony route
/netgen/openweather/hourforecast/cityid/524901
- By calling HourForecast service
/**
* @var $hourForecast \Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather\HourForecastInterface
*/
$data = $hourForecast->fetchForecastByCityGeographicCoordinates(
35, 139
);
- By rendering controller inside template
{{ render(
controller(
'netgen_open_weather_map.controller.hour_forecast:getForecastByCityGeographicCoordinates',
{
'latitude': 35,
'longitude': 139
}
)
) }}
- Or via Symfony route
/netgen/openweather/hourforecast/geocoords/35/139
For more details please check here.
- By calling DailyForecast service
/**
* @var $dailyForecast \Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather\DailyForecastInterface
*/
$data = $dailyForecast->fetchForecastByCityName(
'London'
);
- By rendering controller inside template
{{ render(
controller(
'netgen_open_weather_map.controller.daily_forecast:getForecastByCityName',
{
'cityName': 'London'
}
)
) }}
- Or via Symfony route
/netgen/openweather/dailyforecast/cityname/London
- By calling DailyForecast service
/**
* @var $dailyForecast \Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather\DailyForecastInterface
*/
$data = $dailyForecast->fetchForecastByCityId(
524901
);
- By rendering controller inside template
{{ render(
controller(
'netgen_open_weather_map.controller.daily_forecast:getForecastByCityId',
{
'cityId': 524901
}
)
) }}
- Or via Symfony route
/netgen/openweather/dailyforecast/cityid/524901
- By calling DailyForecast service
/**
* @var $dailyForecast \Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather\DailyForecastInterface
*/
$data = $dailyForecast->fetchForecastByCityGeographicCoordinates(
55, 37
);
- By rendering controller inside template
{{ render(
controller(
'netgen_open_weather_map.controller.daily_forecast:getForecastByCityGeographicCoordinates',
{
'latitude': 55,
'longitude': 37
}
)
) }}
- Or via Symfony route
/netgen/openweather/dailyforecast/geocoords/55/37
For more details please check here.
- By calling UltravioletIndex service
/**
* @var $ultravioletIndex \Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather\UltravioletIndexInterface
*/
$data = $ultravioletIndex->fetchUltravioletIndex(
55, 37
);
- By rendering controller inside template
{{ render(
controller(
'netgen_open_weather_map.controller.ultraviolet_index:getUltravioletIndex',
{
'latitude': 55,
'longitude': 37
}
)
) }}
- Or via Symfony route
/netgen/openweather/ultravioletindex/55/37
For more details please check here.
- By calling WeatherStations service
/**
* @var $weatherStations \Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather\WeatherStationsInterface
*/
$data = $weatherStations->fetchFromOnStationById(29584);
- By rendering controller inside template
{{ render(
controller(
'netgen_open_weather_map.controller.weather_stations:getFromOnStationById',
{ 'stationId': 29584 }
)
) }}
- Or via Symfony route
/netgen/openweather/weatherstations/station/29584
- By calling WeatherStations service
/**
* @var $weatherStations \Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather\WeatherStationsInterface
*/
$data = $weatherStations->fetchFromSeveralByRectangleZone(
array(8.87, 49.07, 65.21, 61.26, 6), 'yes', 10
);
- By rendering controller inside template
{{ render(
controller(
'netgen_open_weather_map.controller.weather_stations:getFromSeveralByRectangleZone',
{
'longitudeTopLeft': 8.87,
'latitudeTopLeft': 49.07,
'longitudeBottomRight': 65.21,
'latitudeBottomRight': 61.26,
'mapZoom': 6,
'cluster': 'yes',
'numberOfStations': 10
}
)
) }}
- Or via Symfony route
/netgen/openweather/weatherstations/stationsrectangle/8.87/49.07/65.21/61.26/6/yes/10
- By calling WeatherStations service
/**
* @var $weatherStations \Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather\WeatherStationsInterface
*/
$data = $weatherStations->fetchFromSeveralByGeoPoint(
55, 37
);
- By rendering controller inside template
{{ render(
controller(
'netgen_open_weather_map.controller.weather_stations:getFromSeveralByGeoPoint',
{
'latitude': 55,
'longitude': 37
}
)
) }}
- Or via Symfony route
/netgen/openweather/weatherstations/stationsgeopoint/55/37
For details about CO check here and for ozone.
- By calling AirPollution service
/**
* @var $airPollution \Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather\AirPollutionInterface
*/
$data = $airPollution->fetchOzoneData(35, 139);
- By rendering controller inside template
{{ render(
controller(
'netgen_open_weather_map.controller.air_pollution:getOzoneData',
{ 'latitude': 35, 'longitude': 139 }
)
) }}
- Or via Symfony route
/netgen/openweather/airpollution/ozone/35/139
- By calling AirPollution service
/**
* @var $airPollution \Netgen\Bundle\OpenWeatherMapBundle\API\OpenWeatherMap\Weather\AirPollutionInterface
*/
$data = $airPollution->fetchCarbonMonoxideData(35, 139);
- By rendering controller inside template
{{ render(
controller(
'netgen_open_weather_map.controller.air_pollution:getCarbonMonoxideData',
{ 'latitude': 35, 'longitude': 139 }
)
) }}
- Or via Symfony route
/netgen/openweather/airpollution/carbonmonoxide/35/139