locked
need to show weather and route RRS feed

  • Question

  • User1509050366 posted

    Hi

    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!!!

    much thanks

    Wednesday, July 6, 2011 3:34 PM

Answers

All replies

  • User1508394307 posted

    See Google Directions API

    http://code.google.com/apis/maps/documentation/directions/

    For the weather you can check Google Weather XML

    http://www.google.com/ig/api?weather=new+york,ny

    where "new york,ny" is a location name

    Wednesday, July 6, 2011 3:52 PM
  • User1509050366 posted

    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??

    Wednesday, July 6, 2011 4:19 PM
  • User1508394307 posted

    Great example! It's all done with js and ajax - see the source of the page.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 6, 2011 4:40 PM
  • User1509050366 posted

    Thanks much... I'll try to look into the code.... da vinci code :P

    Wednesday, July 6, 2011 5:17 PM
  • User1509050366 posted

    but why only US weather???

    Wednesday, July 6, 2011 5:18 PM
  • User1508394307 posted

    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. 

    Thursday, July 7, 2011 2:33 AM
  • User1509050366 posted

    THanks

    Friday, July 8, 2011 6:36 AM