Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Elevation *ElevationService // contains filtered or unexported fields }
Client client
type ElevationService ¶
type ElevationService struct {
// contains filtered or unexported fields
}
ElevationService is the API for querying elevations from SRTM
func (*ElevationService) Elevation ¶
func (s *ElevationService) Elevation(ctx context.Context, point *geom.Point) (float64, error)
Elevation returns the elevation for the coordinates
func (*ElevationService) Elevations ¶
func (s *ElevationService) Elevations(ctx context.Context, coords []*geom.Point) ([]float64, error)
Elevations returns the elevations for the coordinates
type Option ¶
Option provides a configuration mechanism for a Client
func WithHTTPClient ¶
WithHTTPClient sets the underlying http client.
func WithHTTPTracing ¶
WithHTTPTracing enables tracing http calls.
func WithStorage ¶
func WithStorage(storage geoelevations.SrtmLocalStorage) Option
WithStorage sets the cache implementation for data files
func WithStorageLocation ¶
WithStorageLocation uses the fully qualified directory name to store cached files
func WithTransport ¶
func WithTransport(t http.RoundTripper) Option
WithTransport sets the underlying http client transport.
Click to show internal directories.
Click to hide internal directories.