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.
The corresponding GitHub project to this blog can be found here.
The tile uses HTML5 Geolocation to capture location information. Additional details about HTML5 Geolocation can be found here.