wundernode
wundernode copied to clipboard
Autocomplete
Can you integrate this as autocomplete with ability to pass all options?
http://www.wunderground.com/weather/api/d/docs?d=autocomplete-api
Example Query:
Request:
curl http://autocomplete.wunderground.com/aq?c=US&query=San%20Francisco,%20CA
Response:
{ "RESULTS": [ { "name": "San Francisco, California", "type": "city", "c": "US", "zmw": "94101.1.99999", "tz": "America/Los_Angeles", "tzs": "PST", "l": "/q/zmw:94101.1.99999" } ] }
We can then parse this array returned of "RESULTS" to get the proper zmw which we can then use in our queries to get accurate results, e.g. most of us would always use RESULTS[0].zmw.