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 trialDonny Gumelar France
Courses Plus Student 1,148 Pointswhere i can find specific weather forecast for any country ? like indonesia , jakarta ? like dark sky maybe ?
i want to make weather app , but on the example is albatross , california . how to change it to any country or place . thx for helping
1 Answer
Greg Kaleka
39,021 PointsHi Donny!
Right now, you're just learning how to set up the look of your app. In future lessons, Pasan will be teaching you how to actually get live weather data through the forecast.io API. You can use the same API to get forecasts for most locations on the globe - you'll just change the API url to reflect the latitude and longitude of the location you're interested in! You can check out the forecast.io docs for more info - you'll learn more about how to use the API in the coming lessons as well. Note, this is the exact API that Dark Sky uses :)
Donny Gumelar France
Courses Plus Student 1,148 PointsDonny Gumelar France
Courses Plus Student 1,148 Pointsthx , is that possible to make this app can show specific area ? just by input a name of the place ?
Greg Kaleka
39,021 PointsGreg Kaleka
39,021 PointsWhat you'll eventually be doing is making a network call to the forecast.io api. You'll use specific data in the url you hit to get the information you want.
The basic url looks like this:
https://api.forecast.io/forecast/APIKEY/LATITUDE,LONGITUDE
You'll need to register to get an API key to input in your url, and then you would just add in the latitude and longitude for the location you're interested in.
Jakarta would be:
https://api.forecast.io/forecast/APIKEY/6.1745,106.8227
Again, you'll need your own API key.