{"id":42194557,"url":"https://github.com/klightspeed/elitedangerousregionmap","last_synced_at":"2026-01-27T00:01:31.457Z","repository":{"id":150847637,"uuid":"294671393","full_name":"klightspeed/EliteDangerousRegionMap","owner":"klightspeed","description":"Elite Dangerous codex region map data, and various sample scripts / modules using it to place systems in codex regions","archived":false,"fork":false,"pushed_at":"2024-06-26T20:56:24.000Z","size":681,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-27T01:05:41.881Z","etag":null,"topics":["codex-region","elite-dangerous","galaxy-map"],"latest_commit_sha":null,"homepage":"","language":"C#","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/klightspeed.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-11T10:59:35.000Z","updated_at":"2024-06-26T20:56:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"f216c368-1ee3-4c6c-bfe3-e63bfa0adb18","html_url":"https://github.com/klightspeed/EliteDangerousRegionMap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/klightspeed/EliteDangerousRegionMap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klightspeed%2FEliteDangerousRegionMap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klightspeed%2FEliteDangerousRegionMap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klightspeed%2FEliteDangerousRegionMap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klightspeed%2FEliteDangerousRegionMap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klightspeed","download_url":"https://codeload.github.com/klightspeed/EliteDangerousRegionMap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klightspeed%2FEliteDangerousRegionMap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28792638,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T21:49:50.245Z","status":"ssl_error","status_checked_at":"2026-01-26T21:48:29.455Z","response_time":59,"last_error":"SSL_read: 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":["codex-region","elite-dangerous","galaxy-map"],"created_at":"2026-01-27T00:01:24.282Z","updated_at":"2026-01-27T00:01:31.443Z","avatar_url":"https://github.com/klightspeed.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"The primary function of these scripts and classes is to take a set of coordinates and determine which Elite Dangerous codex region they are in.\n\nEach implementation has a `main()` entrypoint which takes one or more system names as command-line arguments, which are looked up using EDSM, and their region and the region of their boxel (if different) are output.\n\nEach implements a `findRegion(x, y, z)` function / method, a `findRegionForBoxel(id64)` function / method, and a `findRegionsForSystems(sysname)` function / method.\n\nPlease feel free to use and modify any of these implementations as needed for your use case.\n\n## Functions\n\n`findRegion(x, y, z)`\n\nThis takes a set of coordinates and determines which Elite Dangerous codex region they are in.\n\n`findRegionForBoxel(id64)`\n\nThis takes an id64 (system address) and determines which Elite Dangerous codex region its boxel is in.\n\n`findRegionsForSystems(sysname)`\n\nThis takes a system name, looks it up on EDSM, and returns details on which region each of the returned systems is in.\n\n## Implementations\n### Python\n\nThe functions are implemented in `RegionMap.py`\n\n### C#\n\nThe methods are implemented in the `EliteDangerousRegionMap.RegionMap` static class in `RegionMap.cs`\n\n### Javascript\n\nThe functions are exported by the `RegionMap.js` CommonJS module\n\n### Rust\n\nThe functions are implemented in the `region_map.rs`\n\nIt needs 2 crates:\n  - `reqwest` (with the feature `blocking`)\n  - `serde_json`\n\n:warning: These crates are only needed for the CLI program. If you only need base functions given coordinates or id64, you can ignore this.\n\n# Background\n\nThere are 42 regions in a 93 segment by 30 ring polar grid.\n\nBy probing the edges of the regions (using the region name displayed when jumping between systems), it has been determined that the actual region map is on a 49.3494ly grid (essentially 4096 / 83 ly).\n\nThe region name displayed when jumping between systems is the region at the coordinates the system being jumped to are at.\n\nThe region name in the galaxy map is the name of the region at the 0/0/0 corner of the 10 ly (A) boxel the cursor is in.\n\nThe region name written to the journal and shown on the main page of the codex is the region at the 0/0/0 corner of the system's boxel.\n\nAny codex discoveries are recorded by the game in the region the system's coordinates are in, but won't be shown unless or until the boxel coordinates are in the same region.  This discrepancy has been reported to Frontier - see https://issues.frontierstore.net/issue-detail/13286\n\nThe regions were mapped by following the edges of the regions on the galaxy map (taking into account that the galaxy map is accurate to 10ly).\n\n# Files\n\n`RegionMap.svg` has the region bounds as determined by mapping their edges.\n\n`RegionMap.png` is a grayscale map of the regions, with #000000 being outside the map, #A8A8A8 being region 1 (Galactic Centre), going down in steps of #040404, down to region 42 (The Void) which is #040404.\n\n`RegionMapData.py`, `RegionMapData.json`, `RegionMapData.cs`, and `region_map_data.rs` were generated from `RegionMap.png` using `RegionMap-datagen.py` - they contains (length,region) tuples of the run-length encoded data, with the rows going from bottom (minimum Z) to top.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklightspeed%2Felitedangerousregionmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklightspeed%2Felitedangerousregionmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklightspeed%2Felitedangerousregionmap/lists"}