[ https://issues.apache.org/jira/browse/CAMEL-9273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Charles Moulliard updated CAMEL-9273: ------------------------------------- Description: Many others queries are supported by the weather Api - http://openweathermap.org/api. We should update the component to support more options {code} WEATHER Access current weather data for any location on Earth including over 200,000 cities! Current weather is frequently updated based on global models and data from more than 40,000 weather stations. Data is available in JSON, XML, or HTML format. api.openweathermap.org/data/2.5/weather?q={city name} api.openweathermap.org/data/2.5/weather?q={city name},{country code} api.openweathermap.org/data/2.5/weather?id=2172797 api.openweathermap.org/data/2.5/weather?lat={lat}&lon={lon} api.openweathermap.org/data/2.5/weather?zip={zip code},{country code} api.openweathermap.org/data/2.5/box/city?bbox=12,32,15,37,10&cluster=yes api.openweathermap.org/data/2.5/find?lat=55.5&lon=37.5&cnt=10 api.openweathermap.org/data/2.5/group?id=524901,703448,2643743&units=metric FORECAST - 5d 5 day forecast is available at any location or city. It includes weather data every 3 hours. Forecast is available in JSON, XML, or HTML format. api.openweathermap.org/data/2.5/forecast?q={city name},{country code} api.openweathermap.org/data/2.5/forecast?id={city ID} api.openweathermap.org/data/2.5/forecast?lat={lat}&lon={lon} FORECAST - 16d 16 day forecasts is available at any location or city. Forecasts include daily weather and available in JSON, XML, or HTML format. api.openweathermap.org/data/2.5/forecast/daily?q={city name},{country code}&cnt={cnt} api.openweathermap.org/data/2.5/forecast/daily?id={city ID}&cnt={cnt} api.openweathermap.org/data/2.5/forecast/daily?lat={lat}&lon={lon}&cnt={cnt} HISTORY http://api.openweathermap.org/data/2.5/history/city?id={id}&type=hour&start={start}&end={end} http://api.openweathermap.org/data/2.5/history/city?id={id}&type=hour&start={start}&cnt={cnt} start start date (unix time, UTC time zone), e.g. start=1369728000 end end date (unix time, UTC time zone), e.g. end=1369789200 cnt amount of returned data (one per hour, can be used instead of 'end') http://api.openweathermap.org/data/2.5/history/city?q={city ID},{country code}&type=hour&start={start}&end={end} http://api.openweathermap.org/data/2.5/history/city?q={city ID},{country code}&type=hour&start={start}&cnt={cnt} http://api.openweathermap.org/data/2.5/history/city?lat={lat}&lon={lon}&type=hour&start={start}&end={end} http://api.openweathermap.org/data/2.5/history/city?lat={lat}&lon={lon}&type=hour&start={start}&cnt={cnt} http://api.openweathermap.org/data/2.5/history/station?id={id}&type=tick http://api.openweathermap.org/data/2.5/history/station?id={id}&type=hour http://api.openweathermap.org/data/2.5/history/station?id={id}&type=day STATION http://api.openweathermap.org/data/2.5/station?id={id} http://api.openweathermap.org/data/2.5/box/station?cluster={yes/no}&cnt={cnt}&bbox={bbox} http://api.openweathermap.org/data/2.5/station/find?lat=55&lon=37&cnt=30 {code} was: Many others queries are supported by the weather Api. We should update the component to support more options {code} WEATHER Access current weather data for any location on Earth including over 200,000 cities! Current weather is frequently updated based on global models and data from more than 40,000 weather stations. Data is available in JSON, XML, or HTML format. api.openweathermap.org/data/2.5/weather?q={city name} api.openweathermap.org/data/2.5/weather?q={city name},{country code} api.openweathermap.org/data/2.5/weather?id=2172797 api.openweathermap.org/data/2.5/weather?lat={lat}&lon={lon} api.openweathermap.org/data/2.5/weather?zip={zip code},{country code} api.openweathermap.org/data/2.5/box/city?bbox=12,32,15,37,10&cluster=yes api.openweathermap.org/data/2.5/find?lat=55.5&lon=37.5&cnt=10 api.openweathermap.org/data/2.5/group?id=524901,703448,2643743&units=metric FORECAST - 5d 5 day forecast is available at any location or city. It includes weather data every 3 hours. Forecast is available in JSON, XML, or HTML format. api.openweathermap.org/data/2.5/forecast?q={city name},{country code} api.openweathermap.org/data/2.5/forecast?id={city ID} api.openweathermap.org/data/2.5/forecast?lat={lat}&lon={lon} FORECAST - 16d 16 day forecasts is available at any location or city. Forecasts include daily weather and available in JSON, XML, or HTML format. api.openweathermap.org/data/2.5/forecast/daily?q={city name},{country code}&cnt={cnt} api.openweathermap.org/data/2.5/forecast/daily?id={city ID}&cnt={cnt} api.openweathermap.org/data/2.5/forecast/daily?lat={lat}&lon={lon}&cnt={cnt} HISTORY http://api.openweathermap.org/data/2.5/history/city?id={id}&type=hour&start={start}&end={end} http://api.openweathermap.org/data/2.5/history/city?id={id}&type=hour&start={start}&cnt={cnt} start start date (unix time, UTC time zone), e.g. start=1369728000 end end date (unix time, UTC time zone), e.g. end=1369789200 cnt amount of returned data (one per hour, can be used instead of 'end') http://api.openweathermap.org/data/2.5/history/city?q={city ID},{country code}&type=hour&start={start}&end={end} http://api.openweathermap.org/data/2.5/history/city?q={city ID},{country code}&type=hour&start={start}&cnt={cnt} http://api.openweathermap.org/data/2.5/history/city?lat={lat}&lon={lon}&type=hour&start={start}&end={end} http://api.openweathermap.org/data/2.5/history/city?lat={lat}&lon={lon}&type=hour&start={start}&cnt={cnt} http://api.openweathermap.org/data/2.5/history/station?id={id}&type=tick http://api.openweathermap.org/data/2.5/history/station?id={id}&type=hour http://api.openweathermap.org/data/2.5/history/station?id={id}&type=day STATION http://api.openweathermap.org/data/2.5/station?id={id} http://api.openweathermap.org/data/2.5/box/station?cluster={yes/no}&cnt={cnt}&bbox={bbox} http://api.openweathermap.org/data/2.5/station/find?lat=55&lon=37&cnt=30 {code} > Enhance camel-weather component to support all the options of Api 2.5 > --------------------------------------------------------------------- > > Key: CAMEL-9273 > URL: https://issues.apache.org/jira/browse/CAMEL-9273 > Project: Camel > Issue Type: Bug > Components: camel-weather > Reporter: Charles Moulliard > > Many others queries are supported by the weather Api - > http://openweathermap.org/api. > We should update the component to support more options > {code} > WEATHER > Access current weather data for any location on Earth including over 200,000 > cities! Current weather is frequently updated based on global models and data > from more than 40,000 weather stations. Data is available in JSON, XML, or > HTML format. > api.openweathermap.org/data/2.5/weather?q={city name} > api.openweathermap.org/data/2.5/weather?q={city name},{country code} > api.openweathermap.org/data/2.5/weather?id=2172797 > api.openweathermap.org/data/2.5/weather?lat={lat}&lon={lon} > api.openweathermap.org/data/2.5/weather?zip={zip code},{country code} > api.openweathermap.org/data/2.5/box/city?bbox=12,32,15,37,10&cluster=yes > api.openweathermap.org/data/2.5/find?lat=55.5&lon=37.5&cnt=10 > api.openweathermap.org/data/2.5/group?id=524901,703448,2643743&units=metric > FORECAST - 5d > 5 day forecast is available at any location or city. It includes weather data > every 3 hours. Forecast is available in JSON, XML, or HTML format. > api.openweathermap.org/data/2.5/forecast?q={city name},{country code} > api.openweathermap.org/data/2.5/forecast?id={city ID} > api.openweathermap.org/data/2.5/forecast?lat={lat}&lon={lon} > FORECAST - 16d > 16 day forecasts is available at any location or city. Forecasts include > daily weather and available in JSON, XML, or HTML format. > api.openweathermap.org/data/2.5/forecast/daily?q={city name},{country > code}&cnt={cnt} > api.openweathermap.org/data/2.5/forecast/daily?id={city ID}&cnt={cnt} > api.openweathermap.org/data/2.5/forecast/daily?lat={lat}&lon={lon}&cnt={cnt} > HISTORY > http://api.openweathermap.org/data/2.5/history/city?id={id}&type=hour&start={start}&end={end} > http://api.openweathermap.org/data/2.5/history/city?id={id}&type=hour&start={start}&cnt={cnt} > start start date (unix time, UTC time zone), e.g. start=1369728000 > end end date (unix time, UTC time zone), e.g. end=1369789200 > cnt amount of returned data (one per hour, can be used instead of 'end') > http://api.openweathermap.org/data/2.5/history/city?q={city ID},{country > code}&type=hour&start={start}&end={end} > http://api.openweathermap.org/data/2.5/history/city?q={city ID},{country > code}&type=hour&start={start}&cnt={cnt} > http://api.openweathermap.org/data/2.5/history/city?lat={lat}&lon={lon}&type=hour&start={start}&end={end} > http://api.openweathermap.org/data/2.5/history/city?lat={lat}&lon={lon}&type=hour&start={start}&cnt={cnt} > http://api.openweathermap.org/data/2.5/history/station?id={id}&type=tick > http://api.openweathermap.org/data/2.5/history/station?id={id}&type=hour > http://api.openweathermap.org/data/2.5/history/station?id={id}&type=day > STATION > http://api.openweathermap.org/data/2.5/station?id={id} > http://api.openweathermap.org/data/2.5/box/station?cluster={yes/no}&cnt={cnt}&bbox={bbox} > http://api.openweathermap.org/data/2.5/station/find?lat=55&lon=37&cnt=30 > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)