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 trial

Android Build a Weather App (2015) Hooking Up the Model to the View Adding a Refresh Button

Anton Miroshnichenko
Anton Miroshnichenko
176 Points

I can't find APIkey for Saint-Peterburg. What do I have to do?

I have to do my own weather app for Saint-Peterburg, but I can't find at forecast.io any information about this. Help me, please.

Jacob Biros
Jacob Biros
2,241 Points

Your API Key isn't specific for the region you live in. It will be listed in your account info when you first create one on forecast.io and you can copy it and paste it into the URL below.

Then if you want to call for St. Petersburg you can just look up its latitude and longitude and paste that into the URL below as well:

https://api.forecast.io/forecast/APIKEY/LATITUDE,LONGITUDE

Of course one more option is to write some code that automatically find your latitude and longitude for you and then paste those into the URL instead for your API call.