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

How can I use the NOAA api (http://www.ncdc.noaa.gov/cdo-web/webservices/v2) to find wave height info??

I'd like to use wave height info in a personal project, but I can't find specific information on accessing it from NOAA - please help?? This is an android app and I have Android Studio downloaded.

1 Answer

You need to read the documentation more thoroughly. Looking through the link you've posted, it's pretty straightforward on how to make a call to NOAA servers.

http://www.ncdc.noaa.gov/cdo-web/webservices/v2

For any developer, this is a pretty standard REST api they've already built for you. You just need to pass in your token and do a proper query. Build your query string in your android app and make a GET request using AsyncTask or OKHttp in Android.

If you want to know what data you're getting back, test it out in the web browser and keep changing up your queries until you get the data that you want back.

Don't ask questions for the sake of asking questions. Make a solid effort to do what you're trying to accomplish. You'll learn more that way.

If you get stuck, ask your question with more details of what you've tried and what didn't work. I feel more inclined to answer questions on the forum if I know the person asking for help has made an honest effort into trying to figure out what the problem is and how to solve it.

Besides, that's the majority of programming: problem solving.