{"id":18087826,"url":"https://github.com/kumy/srtm-server","last_synced_at":"2025-04-06T01:43:12.101Z","repository":{"id":140787032,"uuid":"78671607","full_name":"kumy/srtm-server","owner":"kumy","description":null,"archived":false,"fork":false,"pushed_at":"2017-06-07T16:56:51.000Z","size":3050,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T07:54:37.910Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kumy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-11T19:25:26.000Z","updated_at":"2021-04-25T07:29:55.000Z","dependencies_parsed_at":"2024-06-14T07:00:11.637Z","dependency_job_id":null,"html_url":"https://github.com/kumy/srtm-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kumy%2Fsrtm-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kumy%2Fsrtm-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kumy%2Fsrtm-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kumy%2Fsrtm-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kumy","download_url":"https://codeload.github.com/kumy/srtm-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247423495,"owners_count":20936622,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-31T17:05:52.323Z","updated_at":"2025-04-06T01:43:12.086Z","avatar_url":"https://github.com/kumy.png","language":"Python","readme":"# SRTM Server\n\nA Flask based python REST API for the srtm module to get elevations for an area described by a lat/lon bounding box.\n\n### To run:\n\n    pip install -r requirements.txt\n    python ./srtm_server.py\n\nStarts on port 5000\n\n\n\n### Heroku deployment\n\nGet toolbet from here:\n    https://devcenter.heroku.com/articles/getting-started-with-python#set-up\n\nRun the following commands:\n\n    heroku login\n    virtualenv venv\n\nJust on Windows:\n\n    venv\\Scripts\\activate.bat\n\n\nJust on *NIX:\n\n```source venv/bin/activate```\n\n\n\n    pip install -r requirements.txt --allow-all-external\n    heroku create\n    git push heroku master\n    heroku ps:scale web=1\n    heroku open\n\n\nBrowser should open displaying ```\"Hello World!\"```\n\n\n#### To make a request\n\nForm a URL as follows:\n\n    APP_URL/api/getElevations?north=TOP_LAT\u0026south=BOTTOM_LAT\u0026east=RIGHT_LON\u0026west=LEFT_LON\u0026resolution=RES\n\nE.g.\n\nhttps://shielded-ridge-5272.herokuapp.com/api/getElevations?north=-37.7\u0026south=-38\u0026east=145.2\u0026west=144.9\u0026resolution=256\n\n\nor\n\n\n\u003clocalhost:5000/api/getElevations?north=-37.7\u0026south=-38\u0026east=145.2\u0026west=144.9\u0026resolution=256\u003e\n\n\n#### Return type\n\nAn 8 bit RBG png image height map of the area specified is returned. Each pixels value represents height above sea level in meters encoded as follows;\n\nHeight(m) = R\\*255 + G + B\\*100\n\n\nE.g.\n\n![Example output image.](http://i.imgur.com/FQZ8nKf.png \"Example output.\")\n\n\n#### Get elevation from one coordinate pair\n\nForm a URL as follows:\n\n    APP_URL/api/getElevation?lat=LAT\u0026lon=LON\n\nE.g.\n\nhttp://localhost:5000/api/getElevation?lat=43.6168\u0026lon=6.95063\n 79\n\n#### Get country code from one coordinate pair\n\nForm a URL as follows:\n\n    APP_URL/api/getCountry?lat=LAT\u0026lon=LON\n\nE.g.\n\nhttp://localhost:5000/api/getCountry?lat=43.6168\u0026lon=6.95063\n FR\n\n### Licence\n\nThe data file `polygons.properties` is available under a [Creative Commons Attribution-Share Alike License](http://creativecommons.org/licenses/by-sa/3.0/) in accordance with the license from https://github.com/bencampion/reverse-country-code. It was copied and fixed from [daveross/offline-country-reverse-geocoder](https://github.com/daveross/offline-country-reverse-geocoder)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkumy%2Fsrtm-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkumy%2Fsrtm-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkumy%2Fsrtm-server/lists"}