{"id":19954301,"url":"https://github.com/kimmelsg/cj-google-geocoder","last_synced_at":"2025-10-16T00:02:23.341Z","repository":{"id":62529916,"uuid":"73315603","full_name":"kimmelsg/cj-google-geocoder","owner":"kimmelsg","description":null,"archived":false,"fork":false,"pushed_at":"2019-02-20T19:27:08.000Z","size":23,"stargazers_count":48,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2023-07-15T13:05:35.976Z","etag":null,"topics":["geocode","geocoder","laravel","laravel-package","php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/kimmelsg.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":"2016-11-09T19:42:14.000Z","updated_at":"2023-07-15T13:05:35.976Z","dependencies_parsed_at":"2022-11-02T15:31:16.947Z","dependency_job_id":null,"html_url":"https://github.com/kimmelsg/cj-google-geocoder","commit_stats":null,"previous_names":["navjobs/google-geocoder"],"tags_count":7,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimmelsg%2Fcj-google-geocoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimmelsg%2Fcj-google-geocoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimmelsg%2Fcj-google-geocoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimmelsg%2Fcj-google-geocoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kimmelsg","download_url":"https://codeload.github.com/kimmelsg/cj-google-geocoder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224371196,"owners_count":17300156,"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":["geocode","geocoder","laravel","laravel-package","php"],"created_at":"2024-11-13T01:19:42.037Z","updated_at":"2025-10-16T00:02:23.335Z","avatar_url":"https://github.com/kimmelsg.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Circle CI](https://circleci.com/gh/ConstructionJobs/google-geocoder.svg?style=shield)](https://circleci.com/gh/ConstructionJobs/google-geocoder)\n[![Code Climate](https://codeclimate.com/github/navjobs/google-geocoder/badges/gpa.svg)](https://codeclimate.com/github/navjobs/google-geocoder)\n\n###### Google Geocoding\nProvides an abstraction for requests to Google Maps geocoding service.\n\n## Installation\nYou can install this package via Composer using this command:\n\n```bash\ncomposer require ConstructionJobs/google-geocoder\n```\n\n## Laravel Installation\nThis package comes with a service provider for use with Laravel.\nYou will not need to do anything if you're using laravel version 5.5 and up.\n\nIf you are using laravel 5.4 or below, to install the service provider:\n\n```php\n// config/app.php\n'providers' =\u003e [\n    // other providers\n    'ConstructionJobs\\GoogleGeocoder\\GoogleGeocoderServiceProvider'\n];\n```\n\nAlso you must publish the config file:\n\n```php\nphp artisan vendor:publish --provider=\"ConstructionJobs\\GoogleGeocoder\\GoogleGeocoderServiceProvider\"\n```\n\nThe config file allows you to set your `api key`, `language` and `region`.\n\n## Usage\n\nThere are three ways that you may use this package.\n\n```php\n// Geocode an address\n$geocoder = new Geocoder;\n$geocoder-\u003egeocode('New York, NY');\n\n// Reverse geocode from coordinates\n$geocoder = new Geocoder;\n$geocoder-\u003ereverseByCoordinates(40.7127837, -74.0059413);\n\n// Reverse geocode from a Google place id.\n$geocoder = new Geocoder;\n$geocoder-\u003ereverseByPlaceId('ChIJOwg_06VPwokRYv534QaPC8g');\n```\n\nAll of these methods return a standard response format as follows:\n\n```php\n[\n    'address' =\u003e 'New York, NY, USA',\n    'latitude' =\u003e 40.7127837,\n    'longitude' =\u003e -74.0059413,\n    'place_id' =\u003e ChIJOwg_06VPwokRYv534QaPC8g,\n    'types' =\u003e [\n        'locality',\n        'political'\n    ]\n    $bounds = [\n        'northeast' =\u003e [\n            'latitude' =\u003e 40.9152555,\n            'longitude' =\u003e -73.7002721,\n        ],\n        'southwest' =\u003e [\n            'latitude' =\u003e 40.496044,\n            'longitude' =\u003e -74.255735,\n        ]\n    ];\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimmelsg%2Fcj-google-geocoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkimmelsg%2Fcj-google-geocoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimmelsg%2Fcj-google-geocoder/lists"}