[SOLVED] Data Retrieval from NOAA API
First let me say I'm fairly new to all of this, but I'm picking it up quickly. My experience has mostly been HPC with Fortran until now.
What I'm trying to do is fetch from the web a dataset generated by a specific link (The link will vary depending on what I'm looking for, I'm not sure what the technical term for this type of link is). The data comes from NOAA.
@http://tidesandcurrents.noaa.gov/api/datagetter?begin_date=20130808 15:00&end_date=20130809 15:06&station=8454000&product=water_temperature&units=english&time_zone=gmt&application=ports_screen&format=xml@
generates a bunch of data. I want to go get it and use it.
So my question is, how can I have Qt go out to the web, populate the data set, and then come back with the data in hand as something that I can pick apart and use in my code.
Thanks for you help
Hi and welcome to devnet,
You can have a look at the QNetworkAccessManager class, to handle that. Depending on the data format, QXmlStreamReader/QJsonDocument and friends
Hope it helps
Thank you very much. Worked perfectly.
You're welcome !
Since you have it working, please update the thread title prepending [solved] so other forum users may know a solution has been found :)