{"id":18455430,"url":"https://github.com/enniel/adonis-geocoder","last_synced_at":"2025-04-22T17:10:48.385Z","repository":{"id":57173571,"uuid":"94984360","full_name":"enniel/adonis-geocoder","owner":"enniel","description":null,"archived":false,"fork":false,"pushed_at":"2017-10-04T07:16:33.000Z","size":6,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T19:12:05.881Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/enniel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-21T08:59:32.000Z","updated_at":"2018-09-02T19:11:55.000Z","dependencies_parsed_at":"2022-08-24T14:40:44.842Z","dependency_job_id":null,"html_url":"https://github.com/enniel/adonis-geocoder","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enniel%2Fadonis-geocoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enniel%2Fadonis-geocoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enniel%2Fadonis-geocoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enniel%2Fadonis-geocoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enniel","download_url":"https://codeload.github.com/enniel/adonis-geocoder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250285697,"owners_count":21405297,"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-11-06T08:08:01.922Z","updated_at":"2025-04-22T17:10:48.369Z","avatar_url":"https://github.com/enniel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Adonis Geocoder\n\n## Installation\n\n1. Add package:\n\n```bash\n$ npm i adonis-geocoder --save\n```\nor\n\n```bash\n$ yarn add adonis-geocoder\n```\n\n2. Register providers inside the your bootstrap/app.js file.\n\n```js\nconst providers = [\n  ...\n  'adonis-geocoder/providers/GeocoderProvider',\n  ...\n]\n```\n\n3. Config\n\nCopy configuration from [examples/config.js](https://github.com/enniel/adonis-geocoder/blob/master/examples/examples.js) to `config/geocoder.js`.\n\n## Usage example\n\n```js\nconst res = await Geocoder.geocode('29 champs elysée paris')\n\n// output :\n[ { formattedAddress: '29 Av. des Champs-Élysées, 75008 Paris, France',\n    latitude: 48.869384,\n    longitude: 2.3071868,\n    extra:\n     { googlePlaceId: 'ChIJ4e9zicRv5kcRi_EQo6FKduM',\n       confidence: 1,\n       premise: null,\n       subpremise: null,\n       neighborhood: 'Paris',\n       establishment: null },\n    administrativeLevels:\n     { level2long: 'Paris',\n       level2short: 'Paris',\n       level1long: 'Île-de-France',\n       level1short: 'Île-de-France' },\n    streetNumber: '29',\n    streetName: 'Avenue des Champs-Élysées',\n    city: 'Paris',\n    country: 'France',\n    countryCode: 'FR',\n    zipcode: '75008',\n    provider: 'google' } ]\n```\n\nFor more information see [node-geocoder](https://github.com/nchaulet/node-geocoder).\n\n## Credits\n\n- [Evgeni Razumov](https://github.com/enniel)\n\n## Support\n\nHaving trouble? [Open an issue](https://github.com/enniel/adonis-geocoder/issues/new)!\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenniel%2Fadonis-geocoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenniel%2Fadonis-geocoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenniel%2Fadonis-geocoder/lists"}