Versions in this module Expand all Collapse all v0 v0.1.0 Feb 27, 2021 Changes in this version + const SRTM1_URL + const SRTM3_URL + const SRTM_BASE_URL + type LocalFileSrtmStorage struct + func NewLocalFileSrtmStorage(cacheDirectory string) (*LocalFileSrtmStorage, error) + func (ds LocalFileSrtmStorage) IsNotExists(err error) bool + func (ds LocalFileSrtmStorage) LoadFile(fn string) ([]byte, error) + func (ds LocalFileSrtmStorage) SaveFile(fn string, bytes []byte) error + type Srtm struct + func NewSrtm(client *http.Client) (*Srtm, error) + func NewSrtmWithCustomCacheDir(client *http.Client, cacheDirectory string) (*Srtm, error) + func NewSrtmWithCustomStorage(client *http.Client, storage SrtmLocalStorage) (*Srtm, error) + func (self *Srtm) GetElevation(client *http.Client, latitude, longitude float64) (float64, error) + type SrtmData struct + Srtm1 []SrtmUrl + Srtm1BaseUrl string + Srtm3 []SrtmUrl + Srtm3BaseUrl string + func LoadSrtmData(client *http.Client) (*SrtmData, error) + func (self *SrtmData) GetBestSrtmUrl(fileName string) (string, *SrtmUrl) + func (self *SrtmData) GetSrtm1Url(fileName string) (string, *SrtmUrl) + func (self *SrtmData) GetSrtm3Url(fileName string) (string, *SrtmUrl) + type SrtmFile struct + type SrtmLocalStorage interface + IsNotExists func(err error) bool + LoadFile func(fn string) ([]byte, error) + SaveFile func(fn string, bytes []byte) error + type SrtmUrl struct + Name string + Url string