Grasshopper

algorithmic modeling for Rhino

Hello All,

Just wanted to share some recent results when comparing the elevation data accessible from various web api.  I was inspired by this application set up by Steve Young. For the test, I used a 400m swatch from a point somewhere in Catalunya. 

The three APIs used were the following:

Google Elevations API

Mapquest Open Elevation Service API

Geonames SRTM3 API

I also tested the USGS Elevation Service, but I was looking for API which allowed me to query globally.

Here are the results (441 locations queried):

As a side note, Grasshopper reports the requests for data came in at*:

1.9s for Google Elevations API

3.5s for Geonames

413ms for Mapquest

*this is not only measuring the request, but also has to take into account the request throttling due to the various API limitations.

As you can see, there is quite a difference in the data, especially when looking at what Google returns.  It is pretty clear that Mapquest and Geonames use very similar data coming from the SRTM3 dataset.  This dataset is at 3 arc-seconds (appx 90m) for most of the globe (up to 60ºN and 56ºS).  The resolution is 1 arc-second for the United States.  Google reportedly uses hundreds of data sources to achieve a finer resolution, though this comes at a cost.  Geonames and Mapquest put a limit of how many locations you can query at one time, with no limit per day (that I could find).  Google puts a limit of 2500 requests per day, with each request having up to 512 locations, or a total of 25,000 locations.

The comparison was made possible by some of the little utility components which are included in gHowl, namely the XYZ->GEO component which translates points in Rhino/Grasshopper to WSG84 coordinates. 

Views: 2556

Replies to This Discussion

Great stuff Luis... would you be willing to post the GHX files??

Thanks,

Marc

No problem, will put them up sometime this weekend.

The GHX file attached.  Note you will need gHowl to run the conversion from XYZ to WSG84 coordinates and to query google.  I have stripped the file of any other dependencies (I hope).  There is a lot of interpolation in the file (srf from pts) so this just serves as a way to play around with the data...

Oh, one last thing, you will want to sign up for a free geonames account, otherwise querying that source will not work too well with the 'demo' user.  Once you activate your account, you will need to turn on some things in the account settings to allow you to query the service.  After this, copy your username to the panel that says 'demo'

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service