{"id":16971687,"url":"https://github.com/juancarlospaco/nim-open-elevation","last_synced_at":"2026-04-17T11:32:38.733Z","repository":{"id":151515555,"uuid":"158390881","full_name":"juancarlospaco/nim-open-elevation","owner":"juancarlospaco","description":"OpenStreetMap Elevation API MultiSync Client for Nim","archived":false,"fork":false,"pushed_at":"2019-06-06T18:04:46.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T20:16:34.381Z","etag":null,"topics":["elevation","geospatial","nim","nim-lang","openstreetmap"],"latest_commit_sha":null,"homepage":null,"language":"Nim","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/juancarlospaco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"custom":"https://liberapay.com/juancarlospaco/donate"}},"created_at":"2018-11-20T13:06:19.000Z","updated_at":"2019-06-06T18:04:47.000Z","dependencies_parsed_at":"2023-05-18T21:45:29.486Z","dependency_job_id":null,"html_url":"https://github.com/juancarlospaco/nim-open-elevation","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"74551b54991570c0103665bec7cfb19b195fd326"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/juancarlospaco/nim-open-elevation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlospaco%2Fnim-open-elevation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlospaco%2Fnim-open-elevation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlospaco%2Fnim-open-elevation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlospaco%2Fnim-open-elevation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juancarlospaco","download_url":"https://codeload.github.com/juancarlospaco/nim-open-elevation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlospaco%2Fnim-open-elevation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31927832,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T10:35:34.458Z","status":"ssl_error","status_checked_at":"2026-04-17T10:35:09.472Z","response_time":62,"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":["elevation","geospatial","nim","nim-lang","openstreetmap"],"created_at":"2024-10-14T00:53:49.672Z","updated_at":"2026-04-17T11:32:38.706Z","avatar_url":"https://github.com/juancarlospaco.png","language":"Nim","funding_links":["https://liberapay.com/juancarlospaco/donate"],"categories":[],"sub_categories":[],"readme":"# Nim-Open-Elevation\n\n- [Open Elevation](https://open-elevation.com) for [OpenStreetMap](https://openstreetmap.org) MultiSync API Lib and App.\n\n\n# Install\n\n- `nimble install openelevation`\n\n\n# Use\n\n```nim\nimport asyncdispatch, json, openelevation\n\nlet sample_query = %*{\n  \"locations\":\n  [\n    {\n      \"latitude\": 10.55,\n      \"longitude\": 10.75\n    },\n    {\n      \"latitude\": 20.42,\n      \"longitude\": 20.5\n    },\n    {\n      \"latitude\": 41.161758,\n      \"longitude\": -8.583933\n    }\n  ]\n}  # Example query taken from the Documentation.\n\n## Sync client.\nlet client = OpenElevation(timeout: 99.byte)\necho client.lookup(42.0, 50.0)              # GET  (1 query max)\necho client.lookup(locations=sample_query)  # POST (multiple queries)\n\n## Async client.\nproc async_oe() {.async.} =\n  let\n    async_client = AsyncOpenElevation(timeout: 99.byte)\n    async_response = await async_client.lookup(42.0, 50.0)\n  echo async_response.pretty\n\nwait_for async_oe()\n\n# Check the Docs for more API Calls...\n```\n\n\n# Command Line App\n\n![](temp.jpg)\n\n- For Uglyfied JSON use ``--ugly`` (does not reduce bandwith usage).\n- The App supports English and Spanish.\n\n**1 Query:**\n\n```bash\n./open_elevation --color --lower --timeout=9 --lat=42.5 --lon=55.75\n```\n\n**Multiple Queries:**\n\n```bash\n./open_elevation --color --lower --timeout=9 '{\"locations\":[{\"latitude\":9,\"longitude\":10},{\"latitude\":41.68,\"longitude\":-8.58}]}'\n```\n\n# API\n\n- API Calls use [the DoNotTrack HTTP Header.](https://en.wikipedia.org/wiki/Do_Not_Track)\n- This Library uses API Version from Year `2018`.\n- All procs should return an JSON Object `JsonNode` type.\n- API Calls use HTTP `GET` and `POST`.\n- Coordinates are `float32`.\n- API Calls are Anonymous and use a blank User-Agent.\n- The `timeout` argument is on Seconds.\n- For Proxy support define a `proxy` of `Proxy` type.\n- No OS-specific code, so it should work on Linux, Windows and Mac. Not JS.\n- Run the module itself for an Example.\n- Run `nim doc open_elevation.nim` for more Documentation.\n\n\n# FAQ\n\n\n\u003cdetails\u003e\n  \u003csummary\u003eClick to see FAQ\u003c/summary\u003e\n\n- Yo solo hablo Espanol ?\n\nLa aplicacion de linea de comandos soporta Espanol.\n\n- This works without SSL ?.\n\nNo.\n\n- This works with SSL ?.\n\nYes.\n\n- This works with Asynchronous code ?.\n\nYes.\n\n- This works with Synchronous code ?.\n\nYes.\n\n- This requires API Key or Login ?.\n\nNo.\n\n- This requires Credit Card or Payments ?.\n\nNo.\n\n- Can I use the OpenStreetMap data ?.\n\nYes. [**You MUST give Credit to OpenStreetMap Contributors!.**](https://wiki.openstreetmap.org/wiki/Legal_FAQ#3a._I_would_like_to_use_OpenStreetMap_maps._How_should_I_credit_you.3F)\n\n- How to Uglify the output?\n\n`--ugly`\n\n- How to Lowercase the output?\n\n`--lower`\n\n- How to set a Timeout ?\n\n`--timeout=99`\n\n- How to set the Coordinates ?\n\n`--lat=15.42 --lon=12.75`\n\n- How to use colors ?\n\n`--color`\n\n- How to see the Help ?\n\n`--help`\n\n\u003c/details\u003e\n\n\n# Requisites\n\n- None.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuancarlospaco%2Fnim-open-elevation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuancarlospaco%2Fnim-open-elevation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuancarlospaco%2Fnim-open-elevation/lists"}