{"id":17087982,"url":"https://github.com/dsantosmerino/geocodex","last_synced_at":"2025-04-12T22:05:33.016Z","repository":{"id":62429791,"uuid":"93966456","full_name":"dsantosmerino/geocodex","owner":"dsantosmerino","description":"Google Geocoding API wrapper written in Elixir","archived":false,"fork":false,"pushed_at":"2017-06-12T20:04:21.000Z","size":11,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T22:05:28.319Z","etag":null,"topics":["elixir","elixir-phoenix","geocoding-api","hex"],"latest_commit_sha":null,"homepage":"https://hexdocs.pm/geocodex","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/dsantosmerino.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}},"created_at":"2017-06-10T21:31:37.000Z","updated_at":"2023-11-07T10:34:44.000Z","dependencies_parsed_at":"2022-11-01T20:07:19.041Z","dependency_job_id":null,"html_url":"https://github.com/dsantosmerino/geocodex","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/dsantosmerino%2Fgeocodex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsantosmerino%2Fgeocodex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsantosmerino%2Fgeocodex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsantosmerino%2Fgeocodex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dsantosmerino","download_url":"https://codeload.github.com/dsantosmerino/geocodex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248637769,"owners_count":21137538,"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","elixir-phoenix","geocoding-api","hex"],"created_at":"2024-10-14T13:35:42.191Z","updated_at":"2025-04-12T22:05:32.993Z","avatar_url":"https://github.com/dsantosmerino.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Geocodex\n[![Build Status](https://travis-ci.org/dsantosmerino/geocodex.svg?branch=master)](https://travis-ci.org/dsantosmerino/geocodex)\n[![Hex Version](https://img.shields.io/hexpm/v/geocodex.svg)](https://hex.pm/packages/geocodex)\n\nA Google Geocoding API wrapper written in Elixir\n\n## Installation\n\n  1. Add `geocodex` to your list of dependencies in `mix.exs`:\n\n  ```elixir\n  def deps do\n    [{:geocodex, \"~\u003e 0.1.0\"}]\n  end\n  ```\n\n  2. Ensure `httpoison` is started before your application:\n\n  ```elixir\n  def application do\n    [applications: [:httpoison]]\n  end\n  ```\n\n## Usage\n\n```elixir\niex\u003e Geocodex.set_api_key(\"YOUR API KEY\")\n:ok\niex\u003e Geocodex.place_id(\"ChIJrTLr-GyuEmsRBfy61i59si0\")\n%{\"results\" =\u003e [%{\"address_components\" =\u003e [%{\"long_name\" =\u003e \"Sydney\",\n        \"short_name\" =\u003e \"Sydney\",\n        \"types\" =\u003e [\"locality\", \"political\"]},\n      %{\"long_name\" =\u003e \"New South Wales\", \"short_name\" =\u003e \"NSW\",\n        \"types\" =\u003e [\"administrative_area_level_1\", \"political\"]},\n      %{\"long_name\" =\u003e \"Australia\", \"short_name\" =\u003e \"AU\",\n        \"types\" =\u003e [\"country\", \"political\"]},\n      %{\"long_name\" =\u003e \"2000\", \"short_name\" =\u003e \"2000\",\n        \"types\" =\u003e [\"postal_code\"]}],\n    \"formatted_address\" =\u003e \"32 The Promenade, King Street Wharf 5, Sydney NSW 2000, Australia\",\n    \"geometry\" =\u003e %{\"location\" =\u003e %{\"lat\" =\u003e -33.867591,\n        \"lng\" =\u003e 151.201196}, \"location_type\" =\u003e \"APPROXIMATE\",\n      \"viewport\" =\u003e %{\"northeast\" =\u003e %{\"lat\" =\u003e -33.86624201970849,\n          \"lng\" =\u003e 151.2025449802915},\n        \"southwest\" =\u003e %{\"lat\" =\u003e -33.86893998029149,\n          \"lng\" =\u003e 151.1998470197085}}},\n    \"place_id\" =\u003e \"ChIJrTLr-GyuEmsRBfy61i59si0\",\n    \"types\" =\u003e [\"establishment\", \"food\", \"point_of_interest\",\n      \"restaurant\", \"travel_agency\"]}], \"status\" =\u003e \"OK\"}\n```\n\nDocumentation can be found on [HexDocs](https://hexdocs.pm/geocodex).\n\n## Running locally\n\nClone the repository\n```bash\ngit clone git@github.com:dsantosmerino/geocodex.git\n```\n\nInstall dependencies\n```bash\ncd geocodex\nmix deps.get\n```\n\nTo run the tests\n```bash\nmix test\n```\n\nTo run the lint\n```elixir\nmix credo\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsantosmerino%2Fgeocodex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsantosmerino%2Fgeocodex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsantosmerino%2Fgeocodex/lists"}