Comment 1 for bug 1062956

Matt Fischer (mfisch) wrote :

I note that the weather API is right, but is only showing Fort Morgan, United States of America, the same query that Google Maps is being passed. Maybe there's a way to get the weather API to include the state or zip code?

Here's what the weather API is returning:
{ "data": { "current_condition": [ {"cloudcover": "97", "humidity": "82", "observation_time": "05:44 PM", "precipMM": "1.4", "pressure": "1029", "temp_C": "3", "temp_F": "37", "visibility": "5", "weatherCode": "332", "weatherDesc": [ {"value": "Moderate snow" } ], "weatherIconUrl": [ {"value": "http:\/\/www.worldweatheronline.com\/images\/wsymbols01_png_64\/wsymbol_0020_cloudy_with_heavy_snow.png" } ], "winddir16Point": "NE", "winddirDegree": "40", "windspeedKmph": "21", "windspeedMiles": "13" } ], "request": [ {"query": "Fort Morgan, United States Of America", "type": "City" } ], "weather": [ {"date": "2012-10-06", "precipMM": "3.3", "tempMaxC": "4", "tempMaxF": "38", "tempMinC": "-7", "tempMinF": "19", "weatherCode": "332", "weatherDesc": [ {"value": "Moderate snow" } ], "weatherIconUrl": [ {"value": "http:\/\/www.worldweatheronline.com\/images\/wsymbols01_png_64\/wsymbol_0020_cloudy_with_heavy_snow.png" } ], "winddir16Point": "NE", "winddirDegree": "40", "winddirection": "NE", "windspeedKmph": "21", "windspeedMiles": "13" } ] }}