{"id":13424466,"url":"https://github.com/andre/geocoder","last_synced_at":"2025-03-15T18:35:12.056Z","repository":{"id":74629534,"uuid":"131604176","full_name":"andre/geocoder","owner":"andre","description":"Simple Geocoding in Crystal","archived":false,"fork":false,"pushed_at":"2018-05-03T04:18:58.000Z","size":12,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-01T00:41:15.445Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Crystal","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/andre.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-04-30T14:14:06.000Z","updated_at":"2018-08-23T03:37:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"91826a46-5711-4de7-9d72-cde9cbb30381","html_url":"https://github.com/andre/geocoder","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/andre%2Fgeocoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andre%2Fgeocoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andre%2Fgeocoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andre%2Fgeocoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andre","download_url":"https://codeload.github.com/andre/geocoder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221601417,"owners_count":16850348,"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":[],"created_at":"2024-07-31T00:00:54.728Z","updated_at":"2024-10-26T23:31:26.219Z","avatar_url":"https://github.com/andre.png","language":"Crystal","readme":"[![Build Status](https://travis-ci.org/andre/geocoder.svg?branch=master)](https://travis-ci.org/andre/geocoder)\n\n# Geocoder (in Crystal)\n\nSimplest possible geocoder shard for Crystal. \n\nGeocoder options\n\n1) Google. Get your API here: https://developers.google.com/maps/documentation/geocoding/get-api-key\n2) Nominatim (OpenStreamMap). Doesn't need a key, but read usage policy carefully here: https://operations.osmfoundation.org/policies/nominatim/ \n\n## Installation\n\nAdd this to your application's `shard.yml`:\n\n```yaml\ndependencies:\n  geocoder:\n    github: andre/geocoder\n```\n\n## Usage\n\n```crystal\nrequire \"geocoder\"\n\ng = Geocoder::GoogleGeocoder.new(YOUR_GOOGLE_API_KEY)\nres = g.geocode(\"100 Main st, Denver, CO\")\nputs res.address\nputs res.lat\nputs res.lng\n\n```\n\n### Check the `success` method (returns true | false)\n```crystal\nputs res.success\n```\n\n### Multiple results are accessed via the `all_results` method:\n\n```crystal\nres = g.geocode(\"100 Main st\")\nall = res.all_results\nputs all[0].address\nputs all[1].address\n```\n\n## Nominatim / OpenStreetmap:\n\n```crystal\nrequire \"geocoder\"\n\ng = Geocoder::NominatimGeocoder.new()\nres = g.geocode(\"100 Main st, Denver, CO\")\n```\n\n## Contributors\n\n- [Andre Lewis](https://github.com/andre)  - creator\n","funding_links":[],"categories":["Crystal","\u003ca name=\"Crystal\"\u003e\u003c/a\u003eCrystal"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandre%2Fgeocoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandre%2Fgeocoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandre%2Fgeocoder/lists"}