I’m working on the weather app, but my browser, firefox won’t provide any location data. Don’t know why, I don’t have it disabled, and I set allow and remember but continually get “location information is unavailable”.
Ok, so I thought, if it doesn’t work on my computer chances are it won’t work on others, so if I want to have it on my portfolio it needs to actually work for whoever tries it out. Thus I need to request a zip code if I can’t get the location data and get the lat and lon from the zip code.
There are free APIs for this. I’m trying this one http://www.zip-codes.com/content/api/samples/QuickGetZipCodeDetails.html
i’ve tried .get, i’ve tried .ajax, i’ve tried .getJSON, but NONE of them work. As far as I can tell I get no response. I know however the server is responding because if I just put the request link in the browser i get the expected json output. So I’m completely baffled as to why my code isn’t seeing it. What am I doing wrong?