libsrtm

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2023 License: MIT

README

Library to load and parse SRTM data.

Example

package main

import (
	"fmt"
	"log"

	"github.com/mr-marsh/libsrtm/srtm"
	"github.com/mr-marsh/libsrtm/srtm/manager"
	"github.com/mr-marsh/libsrtm/srtm/storage"
)

func main() {
	storage := storage.New()

	manager := manager.New(storage, "SRTM_DATA_URL")

	elevation, err := manager.GetElevation(srtm.Coordinates{Lat: 40.639722, Lon: -73.778889})
	if err != nil {
		log.Fatal(err)
	}

	fmt.Println("elev:", elevation)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL