{"id":18725492,"url":"https://github.com/jacklam718/ng-places-autocomplete","last_synced_at":"2025-11-11T18:30:21.178Z","repository":{"id":36123043,"uuid":"40425909","full_name":"jacklam718/ng-places-autocomplete","owner":"jacklam718","description":"a fancy places autocomplete angular directive, support google, baidu places autocomplete","archived":false,"fork":false,"pushed_at":"2016-03-12T20:44:01.000Z","size":1346,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-28T14:04:56.758Z","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/jacklam718.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":"2015-08-09T04:58:28.000Z","updated_at":"2017-03-27T08:19:23.000Z","dependencies_parsed_at":"2022-09-03T11:10:58.767Z","dependency_job_id":null,"html_url":"https://github.com/jacklam718/ng-places-autocomplete","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklam718%2Fng-places-autocomplete","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklam718%2Fng-places-autocomplete/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklam718%2Fng-places-autocomplete/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklam718%2Fng-places-autocomplete/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacklam718","download_url":"https://codeload.github.com/jacklam718/ng-places-autocomplete/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239592980,"owners_count":19664855,"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-07T14:10:28.558Z","updated_at":"2025-11-11T18:30:21.132Z","avatar_url":"https://github.com/jacklam718.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ng-places-autocomplete\nA fancy and simple diective for places autocomplete and quickly preview the place in a map window. Now support google places api and baidu places api.\n\n\u003cimg  src=\"https://raw.github.com/jacklam718/ng-places-autocomplete/gh-pages/screenshots/demo1.png\" width=\"450px\" height=\"350px\" /\u003e\n\n# Demo\n\u003ca href=\"http://jacklam718.github.io/ng-places-autocomplete\" target=\"_blank\"\u003e\n  DEMO\n\u003c/a\u003e\n\n# Install\n#### Bower:\n```bash\nbower install --save ng-fancy-places-autocomplete\n```\n\n# Usage\nInclude the required libraries. \u003cbr\u003e\nThis package is required jQuery please include jQuery on your project. \u003cbr\u003e\n\n#### Google places api:\n```html\n\u003cscript src=\"http://maps.googleapis.com/maps/api/js?libraries=places\u0026sensor=false\"\u003e\u003c/script\u003e\n```\n\n#### Baidu places api:\n```html\n\u003cscript src=\"http://api.map.baidu.com/api?v=2.0\u0026ak=YOUR API KEY\"\u003e\u003c/script\u003e\n```\n\n#### Import this library on your project:\n```html\n\u003cscript src=\"build/ng-places-autocomplete.min.js\"\u003e\u003c/script\u003e\n\u003clink rel=\"stylesheet\" href=\"build/ng-places-autocomplete.min.css\"\u003e\n```\n\n#### Declare a dependency on your angular app:\n```javascript\nvar ngApp = angular.module('ngApp', ['ng-places-autocomplete']);\n```\n\n#### Add the directive to textbox, now enable places autocomplete with a map popup preview option:\n```html\n\u003cinput type=\"text\" ng-places-autocomplete ng-model=\"location\" map-popup\u003e\n```\n\n#### Or you can only enable the places autocmplete:\n```html\n\u003cinput type=\"text\" ng-places-autocomplete ng-model=\"location\"\u003e\n```\n\n#### Options:\nmap-popup \u0026nbsp;\u0026nbsp; - map popup preview window \u003cbr\u003e\ncity \u0026nbsp;\u0026nbsp; - choose a specific city  \u0026nbsp;\u0026nbsp; # now only for baidu \u003cbr\u003e\ncountry \u0026nbsp;\u0026nbsp; - choose a country \u0026nbsp;\u0026nbsp; # now only for google \u003cbr\u003e\nlang \u0026nbsp;\u0026nbsp; - choose language \u0026nbsp;\u0026nbsp; # now only for google \u003cbr\u003e\n\n# TODO:\ntest case\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacklam718%2Fng-places-autocomplete","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacklam718%2Fng-places-autocomplete","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacklam718%2Fng-places-autocomplete/lists"}