3 ms·
I've used the Open Weather Map API in the past (https://openweathermap.org/api https://openweathermap.org/api). It's free for a reasonable number of requests a
by salamander014 5y ago
I've used the Open Weather Map API in the past (https://openweathermap.org/api https://openweathermap.org/api).
It's free for a reasonable number of requests and has a solid API and a good variety of functionality.
Yours looks well designed! I will give it a shot if I ever need to revisit my local weather script.
Did you chose swift for any reason besides existing knowledge? Python can be compiled down to a binary pretty easily, along with many other languages. Just curious. Cheers.
- meteo-jeff 5y agoMy personal preference for Swift was for sure a major aspect. I also like to profile my code and see how much I can out of it. It is more an academical challenge to compare performance mmap vs file reads calls, but I enjoy it :) With Python I always struggled to get performance to a very high level. I am sure it is possible, but Swift with some C code was more natural for me.