https://github.com/tkrajina/go-elevations
SRTM parser for golang
https://github.com/tkrajina/go-elevations
elevation go golang srtm
Last synced: 5 months ago
JSON representation
SRTM parser for golang
- Host: GitHub
- URL: https://github.com/tkrajina/go-elevations
- Owner: tkrajina
- License: apache-2.0
- Created: 2014-08-28T04:43:15.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-02-27T10:56:13.000Z (about 4 years ago)
- Last Synced: 2024-06-18T23:00:38.534Z (11 months ago)
- Topics: elevation, go, golang, srtm
- Language: Go
- Size: 727 KB
- Stars: 20
- Watchers: 4
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# SRTM parser for golang
go-elevations is a parser for "The Shuttle Radar Topography Mission" data.
It is based on the existing library for python [srtm.py](https://github.com/tkrajina/srtm.py)
## Usage
```golang
package mainimport (
"fmt"
"net/http""github.com/tkrajina/go-elevations/geoelevations"
)func main() {
srtm, err := geoelevations.NewSrtm(http.DefaultClient)
if err != nil {
panic(err.Error())
}
elevation, err := srtm.GetElevation(http.DefaultClient, 45.2775, 13.726111)
if err != nil {
panic(err.Error())
}
fmt.Println("Višnjan elevation is", elevation)
}
```go-elevations is a parser for "The Shuttle Radar Topography Mission" data.
It is based on the existing library for python [srtm.py](https://github.com/tkrajina/srtm.py)
## License
This library is licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)