The weather layer launched on Google Maps about 9 months ago and it has been irritating not to be able to access it via the usual Mapping API. Now an intern working with the Google Maps team in Sydney has extended the API to let you control the weather - layer, that is.
There is currently no full official weather API for Google maps, and it is unlikely there will be in the future because of the licencing deal between Google and the Weather Channel. There is an unofficial API that results from reverse engineering the Rest style calls actually made to display any data, but this isn't guaranteed not to change or to become unavailable via the use of encryption say.
The new API gives you access to a lot of the facilities of the weather layer. You have to load an additional library to make use of it but this isn't difficult. There are two new classes WeatherLayer and CloudLayer.
The WeatherLayer class allows you to display weather data on the map and configure details such as temperature units, color etc. The user can also see a forecast for the next four days if they click on a location. You can also gain access to the same information via the mouse event object's featureDetails property. Of course, there are ways of getting this same data programmatically firing the event and changing how the data is presented. You can also disable this feature.
The cloud layer can be enabled to produce cloud imagery at zoom levels 0 through 6.
You may not be able to gain access to the Weather Channels data directly using this API, but the effect is very similar. It should allow you to create your own weather apps, or more likely weather information as part of a more complex geographical application.
More Information
Related Articles
Google Introduces Charges for Google Maps APIs
An Interactive Google Earth KML Editor
Getting started with Google Earth
Getting started with Google Maps
Location Aware Applications (Book Review)
Beginning Google Maps API 3 2nd Edition (Apress) (Book Review)
Comments
or email your comment to: comments@i-programmer.info
To be informed about new articles on I Programmer, subscribe to the RSS feed, follow us on Google+, Twitter, Linkedin or Facebook or sign up for our weekly newsletter.
Chrome DevTools To Benefit From MCP
28/10/2025
Google brings the power of Chrome DevTools to AI coding assistants with its Chrome DevTools Model Context Protocol server, now in public preview.
Jules Coding Agent Upgraded
22/10/2025
New options are now available for Jules, Google's coding Agent - a CLI and an API.
- Apple Extends Bug Bounty Program
- InfluxDB 3.6 Released With AI Capabilities
- The Fuss About Fil-C...
- Join The Protest Against The Closing Of Android
- Julia 1.12 Adds Trim Feature
- Google AI Studio Does Angular
- IBM Launches Granite Version 4.0 and Granite-Docling
- Robotic Gut Spider For Exploring Digestive Tract
- AI Champion Ship Now Open
- George Boole, Boolean Logic and Computing
- Google Tunix Hack Hackathon Now Open
- C# Could Overtake Java in TIOBE Index
- Mico - A Personality For Copilot