### camel-weather

The http://camel.apache.org/weather.html[weather,window=_blank]
component provides integration with the http://openweathermap.org/api[Open Weather Map API,window=_blank].

As an example, we can consume the current weather for Madrid in Spain and make some decisions based upon the humidity percentage:

[source,java,options="nowrap"]
CamelContext camelContext = new DefaultCamelContext();
camelContext.addRoutes(new RouteBuilder() {
    @Override
    public void configure() throws Exception {
        from("weather:foo?location=Madrid,Spain")
        .choice()
          .when().jsonpath("$..[?(@humidity > 90)]")
            .to("direct:veryhumid")
          .when().jsonpath("$..[?(@humidity > 70)]")
            .to("direct:humid")
          .otherwise()
            .to("direct:nothumid");
    }
});
camelContext.start();

