Gem parses SRTM data and for given latitude/longitude returns the elevation for that point, or nearest interpolated. Fetching of SRTM data files will be supported soon.
Add this line to your application's Gemfile:
gem 'SRTMGem'
And then execute:
$ bundle
Or install it yourself as:
$ gem install SRTMGem
srtm = SRTM.new('/path/to/hgt/file/N46E016.hgt')
p srtm.get_elevation(16.223, 46.7421)
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request