4 ms·
One thing I always find missing with forecast.io/DarkSky apis is that you have to supply cordinates to get the weather of a location. What if I want to be able
by JoshGlazebrook 10y ago
One thing I always find missing with forecast.io/DarkSky apis is that you have to supply cordinates to get the weather of a location. What if I want to be able to query by city or postal code? It's the only reason why I stick with weather underground for my weather chat bot where people are trying to get weather info based on a (city, region), (city, region, country), or (postal code).
- lojack 10y agoSure, its another API, but its relatively trivial to get the lat/long from a location using something like the Google Geocoding API. All things equal, a single API call is nicer, but I wouldn't personally let that be the only reason to not use DarkSky's API.
- pferde 10y agoSo, instead of depending on one service, you now depend on two.
- johnduhart 10y agoYes, because I'd rather DarkSky focus on being a great weather API than being a mediocre geocoding API.
- lojack 10y agoExactly why I said: "All things equal, a single API call is nicer"
- rbritton 10y agoThere's a pretty good free data source if you wanted to build the resolving support yourself. I've used it successfully in the past. http://www.geonames.org http://www.geonames.org
- disposition2 10y agoYou can use other data / APIs to convert from zip code[1] or physical addresses[2] 1. https://gist.github.com/erichurst/7882666 https://gist.github.com/erichurst/7882666 2. https://developers.google.com/maps/documentation/geocoding/intro https://developers.google.com/maps/documentation/geocoding/i...