Tech Blog

Weather Tile Using Geolocation

This project shows an example of a tile that collects weather data based on the user’s location and shows the forecast. The tile collects the user’s location information (once they have allowed it) and uses that to pull weather information from the MetaWeather API. The API only shows information for a certain set of cities worldwide. If your city is not explicitly included, the tile will return the weather of the closest city to you. This project can be found in the Developer Network GitHub account: https://github.com/ExLibrisGroup/campusm-aek/tree/master/weather-information.  

The tile uses HTML5 Geolocation to capture location information. Additional details about HTML5 Geolocation can be found here

Screenshot

Leave a Reply