{"id":27595687,"url":"https://github.com/rog404/geolixir","last_synced_at":"2026-01-21T19:02:56.804Z","repository":{"id":286557057,"uuid":"961656334","full_name":"rog404/geolixir","owner":"rog404","description":"A simple and efficient geolocation library for Elixir applications.","archived":false,"fork":false,"pushed_at":"2025-12-18T02:52:51.000Z","size":51,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-21T12:48:54.146Z","etag":null,"topics":["elixir","elixir-lib","elixir-library","geocode","geolocation","reverse-geocode"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/rog404.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-07T00:23:29.000Z","updated_at":"2025-12-18T02:52:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"b5e6b3b9-e5bd-4218-b7e1-52f8d1c39a7b","html_url":"https://github.com/rog404/geolixir","commit_stats":null,"previous_names":["rog404/geolixir"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/rog404/geolixir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rog404%2Fgeolixir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rog404%2Fgeolixir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rog404%2Fgeolixir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rog404%2Fgeolixir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rog404","download_url":"https://codeload.github.com/rog404/geolixir/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rog404%2Fgeolixir/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28640146,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T18:04:35.752Z","status":"ssl_error","status_checked_at":"2026-01-21T18:03:55.054Z","response_time":86,"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":["elixir","elixir-lib","elixir-library","geocode","geolocation","reverse-geocode"],"created_at":"2025-04-22T12:16:48.629Z","updated_at":"2026-01-21T19:02:56.797Z","avatar_url":"https://github.com/rog404.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Geolixir\n\nWelcome to Geolixir! This library makes it simple to work with geocoding in your Elixir projects. Easily convert addresses to coordinates (geocoding) and coordinates back to addresses (reverse geocoding).\n\n## ✨ Features\n\n*   **Geocoding:** Find latitude and longitude from an address.\n*   **Reverse Geocoding:** Find address details from latitude and longitude.\n*   **Multiple Providers:** Supports various geocoding services (OpenStreetMap, Geoapify, Google Maps, Geocoding, PositionStack). You can choose your preferred provider or stick with the default.\n*   **Simple Interface:** Easy-to-use functions for common tasks.\n\n## 🚀 Installation\n\nAdd `geolixir` to your `mix.exs` dependencies:\n\n```elixir\ndef deps do\n  [\n    {:geolixir, \"~\u003e 0.1.4\"}\n  ]\nend\n```\n\nThen, run `mix deps.get` in your terminal.\n\n## 💡 Usage\n\nHere's how you can use Geolixir:\n\n### Geocoding (Address to Coordinates)\n\n```elixir\n# Using the default provider (OpenStreetMap)\niex\u003e Geolixir.geocode(\"1600 Amphitheatre Parkway, Mountain View, CA\")\n{:ok, %Geolixir.Result{\n  coordinates: %Geolixir.Coords{lat: 37.4224764, lon: -122.0842499},\n  location: %Geolixir.Location{...},\n  bounds: %Geolixir.Bounds{...},\n  metadata: %{}\n}}\n\n# Using a specific provider (e.g., Geoapify, requires API key)\niex\u003e Geolixir.geocode(\"Eiffel Tower, Paris\", provider: :geoapify, api_key: \"YOUR_GEOAPIFY_KEY\")\n{:ok, %Geolixir.Result{...}}\n```\n\n### Reverse Geocoding (Coordinates to Address)\n\n```elixir\n# Using the default provider\niex\u003e Geolixir.reverse_geocode(48.8584, 2.2945)\n{:ok, %Geolixir.Result{\n  location: %Geolixir.Location{formatted_address: \"Tour Eiffel, 5, Avenue Anatole France, ...\", ...},\n  ...\n}}\n\n# Using a specific provider (e.g., PositionStack, requires API key)\niex\u003e Geolixir.reverse_geocode(40.7128, -74.0060, provider: :position_stack, api_key: \"YOUR_POSITIONSTACK_KEY\")\n{:ok, %Geolixir.Result{...}}\n\n# Handling errors\niex\u003e Geolixir.reverse_geocode(999.0, 999.0)\n{:error, _provider_error_map} # Example error\n```\n\n**Note:** Some providers require an API key. Pass it using the `api_key: \"your_key\"` option. Check the specific provider module documentation for details.\n\n## 🛣️ Roadmap\n\n*   Create documentation on HexDocs\n*   Implement batch operations (`list_geocode`, `list_reverse_geocode`).\n*   Add support for more geocoding providers.\n*   Enhance error handling.\n\n## 📚 Documentation\n\nFull documentation can be generated using ExDoc and published on [HexDocs](https://hexdocs.pm/geolixir).\n\n\n## 📝 License\n\nLicensed under the [MIT License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frog404%2Fgeolixir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frog404%2Fgeolixir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frog404%2Fgeolixir/lists"}