Last post Jul 08, 2011 06:36 AM by singhswat
Jul 06, 2011 03:34 PM|singhswat|LINK
I'm currently building a website and prettly much stuck on with this one....
Requirement looks like this: A user searches for a location From point A to point B in maps (Google or Bing or some other), A route will be plotted on maps... My challange is to show weather also at different location on that route...
so if the route changes dynamically then weather has to be updated accordingly for that route....
Guys any sample or some Idea how both can be achived with a single bullet!!!
Jul 06, 2011 03:52 PM|smirnov|LINK
See Google Directions API
For the weather you can check Google Weather XML
where "new york,ny" is a location name
Jul 06, 2011 04:19 PM|singhswat|LINK
How would I club both <Weather and route> .... I just found an example... http://www.wunderground.com/roadtrip But weather is limited only to US!!!
Some XML parsing.... of route and then plotting the same with weather details??
Jul 06, 2011 04:40 PM|smirnov|LINK
Great example! It's all done with js and ajax - see the source of the page.
Jul 06, 2011 05:17 PM|singhswat|LINK
Thanks much... I'll try to look into the code.... da vinci code :P
Jul 06, 2011 05:18 PM|singhswat|LINK
but why only US weather???
Jul 07, 2011 02:33 AM|smirnov|LINK
It's mentioned on their page below the search form: "¹ Weather forecasts are currently only available in the continental United States."
It might be due to that fact that their location database of the world is not such detailed as for the US. If you search a weather for some small places in US - you will find it. And, for instance, in Europe it finds only big places.
Jul 08, 2011 06:36 AM|singhswat|LINK