{"id":18784898,"url":"https://github.com/ghostbar/angular-geocomplete","last_synced_at":"2025-04-13T12:33:35.171Z","repository":{"id":16842911,"uuid":"19602653","full_name":"ghostbar/angular-geocomplete","owner":"ghostbar","description":"Angular factory with methods to query Google's API and get GeoData","archived":false,"fork":false,"pushed_at":"2016-02-25T22:13:53.000Z","size":12,"stargazers_count":12,"open_issues_count":2,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-10T15:29:02.066Z","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/ghostbar.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":"2014-05-09T07:15:59.000Z","updated_at":"2023-09-06T18:33:20.000Z","dependencies_parsed_at":"2022-08-04T11:45:13.340Z","dependency_job_id":null,"html_url":"https://github.com/ghostbar/angular-geocomplete","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostbar%2Fangular-geocomplete","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostbar%2Fangular-geocomplete/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostbar%2Fangular-geocomplete/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostbar%2Fangular-geocomplete/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghostbar","download_url":"https://codeload.github.com/ghostbar/angular-geocomplete/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223588762,"owners_count":17169879,"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-07T20:44:23.985Z","updated_at":"2024-11-07T20:44:24.594Z","avatar_url":"https://github.com/ghostbar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"angular-geocomplete\n===================\n\nSimple Angular.js factory that gets GeoData from Google Maps's API with a simple name of a City or an Address.\n\nIt returns arrays of data and as much options are available for the query. It has two methods: `cities` and `citiesJSON`.\n\nThe first one returns an array with just a String with the following data and format: \"City Name, State Name or abbreviature, Country Name\".\n\nThe second method returns an array with a bunch more data formatted as the Google Maps's API does.\n\nMore docs on the code.\n\nUsage\n-----\n\nInstall with bower:\n\n    bower install angular-geocomplete --save\n\nAdd to your HTML files:\n\n    \u003cscript src='/bower_components/angular-geocomplete/angular-geocomplete.js'\u003e\u003c/script\u003e\n\nNow, inject to your application:\n\n    angular.module('myApp', ['geocomplete']);\n\nReady to use in your controllers!:\n\n`controller.js:`\n\n```js\n// using callbacks\nvar DemoCtrl = [ '$scope', 'geoComplete', function ($scope, geoComplete) {\n  geoComplete.cities(\"San Francisco\", function (results) {\n    $scope.results = results;\n  });\n}];\n\n// using promises\nvar DemoCtrl = [ '$scope', 'geoComplete', function ($scope, geoComplete) {\n  geoComplete.cities(\"San Francisco\").then(function (results) {\n    $scope.results = results;\n  });\n}];\n```\n\nDemo\n----\n1. Plunker: http://plnkr.co/edit/yatsd3Cqg0te6TPMpjLV?p=preview\n2. Local: Run ```gulp``` to run tests, generate coverage and load demo or ```gulp serve``` to just load the demo. (a browser window will automatically open to http://localhost:8000)\n\nTests\n-----\n- Run ```gulp test```\n- Coverage is generated in the ```coverage/``` folder\n\nAuthor\n------\n© 2014, Jose Luis Rivas `\u003cme@ghostbar.co\u003e`. \n\nContributors\n------------\nSha Alibhai (@shalotelli)\n\nLicense\n-------\nThe files are licensed under the MIT terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostbar%2Fangular-geocomplete","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghostbar%2Fangular-geocomplete","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostbar%2Fangular-geocomplete/lists"}