Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialnguoisechiavnvn2
Courses Plus Student 8,043 PointsSo how can i call data from many city?
I realized this Forecast.io Api just only get an unique latidute and longtitude. And the result will be data from only one city. How to get the data from 2 or more cities and how to show it?
1 Answer
Steve Hunter
57,712 PointsHi there,
If you find out the lat/long of the city you're wanting the forecast for and send that to forecast.io, it'll return that forecast. To implement it, add another button labelled with that city which calls the correct function so request the forecast.
Steve.