{"id":19311971,"url":"https://github.com/weblineindia/angular-address-autosuggest","last_synced_at":"2026-04-27T00:32:07.301Z","repository":{"id":57179409,"uuid":"280400173","full_name":"weblineindia/Angular-Address-Autosuggest","owner":"weblineindia","description":"An AngularJS based Address component which uses Google Maps Places API to autosuggest location address.","archived":false,"fork":false,"pushed_at":"2020-07-17T10:57:49.000Z","size":174,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-29T02:51:29.677Z","etag":null,"topics":["address-autocomplete","address-autofill","address-input","angular","angular-address-input","angular-autocomplete","angular-components","angular-libraries","angularjs","angularjs-components","angularjs-library","google-maps-api","google-maps-places","reusable-components"],"latest_commit_sha":null,"homepage":"https://www.weblineindia.com/software-development-resources.html","language":"TypeScript","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/weblineindia.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-07-17T10:50:41.000Z","updated_at":"2023-11-23T12:45:07.000Z","dependencies_parsed_at":"2022-09-14T02:10:34.461Z","dependency_job_id":null,"html_url":"https://github.com/weblineindia/Angular-Address-Autosuggest","commit_stats":null,"previous_names":["weblineindia/angularjs-address-autosuggest"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/weblineindia/Angular-Address-Autosuggest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAngular-Address-Autosuggest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAngular-Address-Autosuggest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAngular-Address-Autosuggest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAngular-Address-Autosuggest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weblineindia","download_url":"https://codeload.github.com/weblineindia/Angular-Address-Autosuggest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAngular-Address-Autosuggest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32318417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"ssl_error","status_checked_at":"2026-04-26T23:26:25.802Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["address-autocomplete","address-autofill","address-input","angular","angular-address-input","angular-autocomplete","angular-components","angular-libraries","angularjs","angularjs-components","angularjs-library","google-maps-api","google-maps-places","reusable-components"],"created_at":"2024-11-10T00:31:44.938Z","updated_at":"2026-04-27T00:32:07.286Z","avatar_url":"https://github.com/weblineindia.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AngularJS - Address Autosuggest (Google Maps Places API)\n\nAn AngularJS based Address component which uses Google Maps Places API to autosuggest location address.\n\n## Table of contents\n\n- [Browser Support](#browser-support)\n- [Demo](#demo)\n- [Installation](#installlation)\n- [Getting started](#getting-started)\n- [Usage](#usage)\n- [Available Props](#available-props)\n- [Methods](#methods)\n- [Want to Contribute?](#want-to-contribute)\n- [Collection of Components](#collection-of-components)\n- [Changelog](#changelog)\n- [Credits](#credits)\n- [License](#license)\n- [Keywords](#Keywords)\n\n## Browser Support\n\n| ![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png) | ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) |\n| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |\n| 83.0 ✔                                                                                   | 77.0 ✔                                                                                      | 13.1.1 ✔                                                                                 | 83.0 ✔                                                                             | 11.9 ✔                                                                                                                       |\n\n## Demo\n\n[![](addressNg.gif)](https://github.com/weblineindia/AngularJS-Address-Autosuggest/addressNg.gif)\n\n## Installation\n\nThis component uses Google Maps Places API to get geo suggestions for address autocompletion. To use this component, you have to include the Google Maps Places API in the `\u003chead\u003e` of your HTML:\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n  \u003chead\u003e\n    …\n    \u003cscript src=\"https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY_HERE\u0026libraries=places\"\u003e\u003c/script\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    …\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\nTo obtain API key please visit the [Google Developer Console](https://console.developers.google.com). The API's that you have to enable in your Google API Manager Dashboard are [Google Maps Geocoding API](https://developers.google.com/maps/documentation/geocoding/start), [Google Places API Web Service](https://developers.google.com/places/web-service/) and [Google Maps Javascript API](https://developers.google.com/maps/documentation/javascript/).\n\n## Getting started\n\nInstall the npm package:\n\n```bash\nnpm install angular-weblineindia-address\n#OR\nyarn add angular-weblineindia-address\n```\n\n## Usage\n\nUse the `\u003cangular-weblineindia-address\u003e` component:\nAdd in app.module.ts\n\n```ts\nimport {AddressModule} from 'angular-weblineindia-address'\n\n imports: [\n    AddressModule\n  ],\n\n```\n\nAdd in app.component.ts\n\n```ts\nimport { Component } from \"@angular/core\";\n\n@Component({\n  selector: \"app-root\",\n  templateUrl: \"./app.component.html\",\n  styleUrls: [\"./app.component.css\"]\n})\nexport class AppComponent {\n  adddressValue: any = [{ address: \"\" }];\n\n  address: any = {\n    placeholder: \"address\",\n    addressUniqueErrorMsg: \"Please do not enter same address\",\n    addressOptions: {\n      types: [],\n      componentRestrictions: { country: \"IN\" }\n    },\n    maxlength: 50,\n    name: \"address\",\n    id: \"address\",\n    disabled: false,\n    tabindex: 0\n  };\n\n  handleAddressChange(event) {\n    this.adddressValue.push(event.data);\n  }\n\n  onChangeAddress(event) {\n    this.adddressValue[event.index].address = event.data;\n  }\n\n  onBlurAddress(data) {}\n\n  onFocusAddress(data) {}\n\n  onClickPlus() {\n    this.adddressValue.push({ address: \"\" });\n  }\n}\n```\n\nAdd in app.component.html\n\n```html\n\u003cdiv *ngFor=\"let value of adddressValue;let indexOfelement=index;\"\u003e\n  \u003clib-address\n    [addressValue]=\"value.address\"\n    [index]=\"indexOfelement\"\n    [addressArray]=\"adddressValue\"\n    [isShowPlus]=\"adddressValue.length-1 === indexOfelement\"\n    [placeholder]=\"address.placeholder\"\n    [addressUniqueErrorMsg]=\"address.addressUniqueErrorMsg\"\n    [addressOptions]=\"address.addressOptions\"\n    [maxlength]=\"address.maxlength\"\n    [name]=\"address.name\"\n    [id]=\"address.id\"\n    [disabled]=\"address.disabled\"\n    [tabindex]=\"address.tabindex\"\n    (changeAddress)=\"onChangeAddress($event)\"\n    (onPlus)=\"onClickPlus()\"\n    (blur)=\"onBlurAddress($event)\"\n    (focus)=\"onFocusAddress($event)\"\n  \u003e\u003c/lib-address\u003e\n\u003c/div\u003e\n```\n\n## Available Props\n\n| Prop                  | Type          | default                                                                                                                                                                       | Description                                    |\n| --------------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------- |\n| id                    | String        |                                                                                                                                                                               | ID for the input container                     |\n| name                  | String        |                                                                                                                                                                               | Name of the component                          |\n| addressValue          | Array         | address: [ {address: \"\", geolocation: { x: 0, y: 0 }, country: \"\",locality: \"\",postalcode: \"\", state: \"\",province: \"\",fulladdress: \"\", streetaddress: \"\",isDuplicate: false}] | Value of the component                         |\n| placeholder           | String        |                                                                                                                                                                               | The input field will get this placeholder text |\n| disabled              | Boolean       | false                                                                                                                                                                         | Disable component                              |\n| tabindex              | Number        |                                                                                                                                                                               | Tab index of the component                     |\n| isMultiple            | Boolean       |                                                                                                                                                                               | Add Multiple Address                           |\n| isShowPlus            | Boolean       |                                                                                                                                                                               | Show + icon                                    |\n| index                 | Number        |                                                                                                                                                                               | Add key of the component                       |\n| maxlength             | Number        |                                                                                                                                                                               | The input maxlength                            |\n| addressArray          | Array[object] | []                                                                                                                                                                            | The address array                              |\n| addressUniqueErrorMsg | String        |                                                                                                                                                                               | Unique address validation                      |\n| addressOptions        | Object        |                                                                                                                                                                               | Autocomplete address options                   |\n\n## Methods\n\n| Name          | Description                                                      |\n| ------------- | ---------------------------------------------------------------- |\n| focus         | Gets triggered when the autocomplete input field receives focus. |\n| blur          | Gets triggered when the autocomplete input field loses focus.    |\n| onPlus        | Gets triggered every time when add plus icon                     |\n| changeAddress | Gets triggered when the autocomplete results got changed.        |\n\n## Want to Contribute?\n\n- Created something awesome, made this code better, added some functionality, or whatever (this is the hardest part).\n- [Fork it](http://help.github.com/forking/).\n- Create new branch to contribute your changes.\n- Commit all your changes to your branch.\n- Submit a [pull request](http://help.github.com/pull-requests/).\n\n---\n\n## Collection of Components\n\nWe have built many other components and free resources for software development in various programming languages. Kindly click here to view our [Free Resources for Software Development](https://www.weblineindia.com/software-development-resources.html)\n\n---\n\n## Changelog\n\nDetailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.md).\n\n## Credits\n\nangular-weblineindia-address is inspired by [ngx-google-places-autocomplete](https://www.npmjs.com/package/ngx-google-places-autocomplete).\n\n## License\n\n[MIT](LICENSE)\n\n[mit]: https://github.com/weblineindia/AngularJS-Address-Autosuggest/blob/master/LICENSE\n\n## Keywords\n\nangular-weblineindia-address, address-autocomplete, google-maps-places, angular-components, angularjs, angularjs-component, angular-address-autosuggest, google-maps-places-api\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweblineindia%2Fangular-address-autosuggest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweblineindia%2Fangular-address-autosuggest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweblineindia%2Fangular-address-autosuggest/lists"}