{"id":40180104,"url":"https://github.com/thgeorgiou/go-srtm","last_synced_at":"2026-01-19T18:13:29.273Z","repository":{"id":57526130,"uuid":"90742345","full_name":"thgeorgiou/go-srtm","owner":"thgeorgiou","description":"A small service written in Go for accessing SRTM elevation data","archived":false,"fork":false,"pushed_at":"2017-05-21T11:39:37.000Z","size":16,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-19T23:14:01.611Z","etag":null,"topics":["api","elevation-data","srtm"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thgeorgiou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-09T12:19:23.000Z","updated_at":"2024-06-19T23:14:01.611Z","dependencies_parsed_at":"2022-09-26T18:11:12.258Z","dependency_job_id":null,"html_url":"https://github.com/thgeorgiou/go-srtm","commit_stats":null,"previous_names":["sakisds/go-srtm"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/thgeorgiou/go-srtm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thgeorgiou%2Fgo-srtm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thgeorgiou%2Fgo-srtm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thgeorgiou%2Fgo-srtm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thgeorgiou%2Fgo-srtm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thgeorgiou","download_url":"https://codeload.github.com/thgeorgiou/go-srtm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thgeorgiou%2Fgo-srtm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28579123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T17:42:58.221Z","status":"ssl_error","status_checked_at":"2026-01-19T17:40:54.158Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","elevation-data","srtm"],"created_at":"2026-01-19T18:13:28.557Z","updated_at":"2026-01-19T18:13:29.261Z","avatar_url":"https://github.com/thgeorgiou.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-srtm\nShuttle Radar Topography Mission (SRTM) is an international research effort to create a global digital elevation dataset. Since the data files are large I created a small web service in Go so applications can access the data without having the users download the whole database locally.\n\n`go-srtm` only works with raw one arc-second data files (.hgt, 3601x3601). Each file should be 25,934,402 bytes.\n\n## How to run\nYou can use `go get github.com/sakisds/go-srtm` to grab the sources and compile a binary. `go-srtm` doesn't have any external dependencies.\n\n## API Documentation\n\n### /elevation\nThis endpoint returns the elevation value for a set of coordinates\n\n**Parameters**:\n * `locations`: Where to look for elevation. Each point is two float numbers (latitude and longitude) separated with\n                a comma (`,`). You can query multiple locations in one call by separating the points with `|`, for\n                example `/elevation?locations=21.124,37.157|22.984,23.487` will return elevation for (21.124, 37.157)\n                and (22.984, 23.487).\n\n**Returns:**: JSON Array of the requested data in meters. If data is not available at a requested point it will return\n              `-1`.\n\n### /elevationPath\nReturns elevation data every 30m on a path connecting two points.\n\n**Parameters**:\n * `from`: Where does the path start (latitude and longitude, comma separated)\n * `to`: Where does the path end (latitude and longitude, comma separated)\n \n**Returns**: JSON Array of elevation data.\n\n### /tiles\nReturns the list of available SRTM tiles\n\n**Returns**: JSON Array of available SRTM files (string, no extension). For example: `[\"N41E021\", \"N41E022\"]`\n\n\n## Configuration\n`go-srtm` will look for `config.ini` in the current path. A sample configuration file:\n```ini\naddress = \"\"\nport = \"8080\"\ndataset = \"/srv/srtm\"\n```\n\n`dataset` should point to the directory containing the SRTM data. You can use `address` to set which IP the service\nis listening on.\n\n## License\n`go-srtm` is available under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthgeorgiou%2Fgo-srtm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthgeorgiou%2Fgo-srtm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthgeorgiou%2Fgo-srtm/lists"}