Hello,
I'm trying to create a map of temperature evolution over time in the world.
So i need to get api data from each country and i would like to have this kind of url: http://climatedataapi.worldbank.org/climateweb/rest/v1/country/annualavg/tas/1980/1999/FRA
cleardata = readtable('countries_codes_and_coordinates.csv'); code = data(76,3); % code = 'FRA'
url = sprintf( 'http://climatedataapi.worldbank.org/climateweb/rest/v1/country/annualavg/tas/1980/1999/', code ) ;FRANCE = webread( url ) ;
But when I run the code I get an error..
Error in readContentFromWebService (line 46) byteArray = copyContentToByteArray(connection);Error in webread (line 125)[varargout{1:nargout}] = readContentFromWebService(connection, options);Error in Projet (line 8)FRANCE = webread( url ) ;
Do you know why my code is false? I also want to remove '…' from 'FRA' because it's probably also an error.
Thanks in advance
Best Answer