Ok, you know i like to use Jquery right? and Google Maps right? Now i found a API where i can use to download their data through XML and display weather information.
Google maps + Yr.no + Geonames
These 3 are the engine. Google maps does have geocoding which you can enter a city and it return longitude, latitude. Meanwhile Geonames takes the long, lat data and return user information such as timezone, current time. data etc. The last one is Yr.no API, which also use long, lat and return an xml.
Jquery + XML + Json
Of course you need to use php save the xml output from Yr.no, caches it 60 minutes. Then let the php return those data as Json or XML if you like, i use Json.
It’s working but need to design a bit
Right now, when you enter the website, it will guess where you are from by tracing ip(?). It shows today’s weather. You can check next day or 7 days ahead. The last one contains MANY data, that’s why i need to design it again so users don’t have to click forward.
Link: http://w.vietzon.com
You can type wrong and still let google fix it for you. Type NY (or New Jork) will be New York, HK will be Hong Kong etc. This weather service will get almost anywhere you like. Maybe i will add a map, little one, so you can see if it’s correct city. You don’t want to type Hanoi and it show you somewhere outskirt.
Bugs? report it in comment