Implemented the function which uses  to cosume a weather service RESTful api