{"id":18645039,"url":"https://github.com/hrefhref/erlang-s2geometry","last_synced_at":"2026-05-05T20:41:43.228Z","repository":{"id":77323043,"uuid":"153114871","full_name":"hrefhref/erlang-s2geometry","owner":"hrefhref","description":"(work in progress) S2Geometry NIF/Wrapper for Erlang. :-)","archived":false,"fork":false,"pushed_at":"2018-11-21T11:24:04.000Z","size":34,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-27T11:34:21.812Z","etag":null,"topics":["elixir","erlang","geo","geography","geometry","s2geometry"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hrefhref.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":"2018-10-15T13:09:34.000Z","updated_at":"2019-09-11T01:34:50.000Z","dependencies_parsed_at":"2023-02-24T21:15:10.271Z","dependency_job_id":null,"html_url":"https://github.com/hrefhref/erlang-s2geometry","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/hrefhref%2Ferlang-s2geometry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrefhref%2Ferlang-s2geometry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrefhref%2Ferlang-s2geometry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrefhref%2Ferlang-s2geometry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hrefhref","download_url":"https://codeload.github.com/hrefhref/erlang-s2geometry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239449544,"owners_count":19640532,"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":["elixir","erlang","geo","geography","geometry","s2geometry"],"created_at":"2024-11-07T06:14:24.548Z","updated_at":"2025-11-05T03:30:23.608Z","avatar_url":"https://github.com/hrefhref.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# erls2: Erlang NIF to S2 Geometry library.\n\nAn Erlang NIF to [S2 Geometry][s2]. This is a work in progress.\n\nThe API is not expected to match entierly s2's: the goal is to make it easily usable for most of the common gis uses\ncases. Most of the real interaction with s2 is done in the NIF.\n\n## Shape Index\n\nIt provides an abstraction to work with `MutableS2ShapeIndex`: `s2_mutable_index`.\n\n```\n{ok, Pid} = s2_mutable_index:start_link(),\nok = s2_mutable_index:add_polygon(Pid, \"some-id\", [[{lng, lat}, ...]]),\ns2_mutable_index:contains(Pid, lng, lat).\n% [\"some-id\"] | []\n```\n\nLower level methods to use the MutableS2ShapeIndex are provided in `s2` module, but be warned that some operations on\nthe Index are not thread safe and should be executed at once (e.g. in always the same genserver).\n\n\n[s2]: https://github.com/google/s2geometry\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrefhref%2Ferlang-s2geometry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhrefhref%2Ferlang-s2geometry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrefhref%2Ferlang-s2geometry/lists"}