getElevations function queries Google Maps API webservice for ground elevations. See https://developers.google.com/maps/documentation/elevation/ for details.
Some times i have the message "Google Maps API requestor has exceeded quota" & sometimes i haven't ... Someon can help me ? I read the quotas of free account Google API but i think i respect this.
OK, the error is just a matter of the API response. Simple fix (AA is lat and lon):
e = nan(size(AA,1),1);
for i = 1:size(AA,1)
e(i,:) = get_Elevations(AA(i,1),AA(i,2));
e(i,:) = nan;
Using the example I get:
Error using getElevations (line 79)
Google Maps API requestor has exceeded quota
This is fantastic. Easy to use, good error checking, and worked right out of the box. I ran into a query limit when I tried an array of 4800 points, but 480 points retrieved results in under a second. Grids work too. NaNs throw a urlread error, which is not intuitive to debug--perhaps a NaN check would help.
correct misspellings and update email
Create scripts with code, output, and formatted text in a single executable document.