wundernode icon indicating copy to clipboard operation
wundernode copied to clipboard

Autocomplete

Open niftylettuce opened this issue 12 years ago • 0 comments

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.

niftylettuce avatar Dec 20 '13 02:12 niftylettuce