camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arno Noordover (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-9273) Enhance camel-weather component to support all the options of Api 2.5
Date Thu, 05 May 2016 17:50:12 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-9273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15272712#comment-15272712
] 

Arno Noordover commented on CAMEL-9273:
---------------------------------------

Do you have any advice on how to proceed with this feature?
Should we use the "UriPath" to let the user choose which part of the API he would like to
use or should we use an "UriParam"?
When we choose to use the "UriPath" as a way to let the user choose the part of the API is
it acceptable that it must match the context that is used by the API?
Is it needed to be backward compatible?
I guess that with dynamic you mean that the current implementation only has support to provide
a location in a header.
Should we use more headers as a way to replace the UriParam's?
Should the choice of which part of the API to use also be dynamic?
Should we implement changes in small steps. For example:
* let the user choose a language for the response;
* let the user use a boxed query by providing rightLon, topLat and zoom as well;
* let the user use the find functionality by providing a count;
* validate the configuration (how can we implement it?);
* ...

> 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: Improvement
>          Components: camel-weather
>            Reporter: Charles Moulliard
>            Priority: Minor
>             Fix For: 2.18.0
>
>         Attachments: CAMEL_9273__introduced_HttpClient.patch
>
>
> 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)

Mime
View raw message