{"id":21916875,"url":"https://github.com/zenoo/address-search","last_synced_at":"2025-04-19T03:19:51.813Z","repository":{"id":32808213,"uuid":"143124754","full_name":"Zenoo/address-search","owner":"Zenoo","description":"Address searching with typeaheads and multiple choices","archived":false,"fork":false,"pushed_at":"2025-01-14T11:16:31.000Z","size":1565,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T21:38:15.071Z","etag":null,"topics":["address-search","autocomplete"],"latest_commit_sha":null,"homepage":"","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/Zenoo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-08-01T08:10:27.000Z","updated_at":"2025-01-14T11:16:23.000Z","dependencies_parsed_at":"2023-01-14T22:18:10.513Z","dependency_job_id":null,"html_url":"https://github.com/Zenoo/address-search","commit_stats":{"total_commits":164,"total_committers":2,"mean_commits":82.0,"dds":"0.12804878048780488","last_synced_commit":"e70bc3142040337caea233642d6947e580f87fc5"},"previous_names":[],"tags_count":63,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zenoo%2Faddress-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zenoo%2Faddress-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zenoo%2Faddress-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zenoo%2Faddress-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zenoo","download_url":"https://codeload.github.com/Zenoo/address-search/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249598419,"owners_count":21297464,"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":["address-search","autocomplete"],"created_at":"2024-11-28T19:21:17.710Z","updated_at":"2025-04-19T03:19:51.785Z","avatar_url":"https://github.com/Zenoo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AddressSearch [(Demo)](https://jsfiddle.net/Zenoo0/tqo1mxsc/)\n\n![Dependencies](https://david-dm.org/Zenoo/address-search.svg)\n\nAddress searching with typeaheads and multiple choices\n\n### Doc\n\n* **Installation**\n\nSimply import Google Places API \u0026 AddressSearch into your HTML.\n```\n\n\u003clink rel=\"stylesheet\" href=\"address-search.min.css\"\u003e\n\u003cscript src=\"https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY\u0026libraries=places\"\u003e\u003c/script\u003e\n\u003cscript src=\"address-search.min.js\"\u003e\u003c/script\u003e\n```\n* **How to use**\n\nCreate a new [`AddressSearch`](https://zenoo.github.io/address-search/AddressSearch.html) object with a query String or an Element as the first parameter :\n```\nlet address = new AddressSearch('div.with[any=\"selector\"]', options, delay);\n// OR\nlet element = document.querySelector('li.terally[any=\"thing\"]');\nlet address = new AddressSearch(element, options, delay);\n```\n* **Options**\n\nYou can automatically fill inputs with address informations when the user selects an address.  \nTo do that, simply add the information type you want and the selector for the input to fill.\n\n\nThe `options` object works as follows\n```\n// GET THE COMPONENT FULL NAME\ntypename : 'targetInput[selector]'\n// GET THE COMPONENT SHORT NAME\ntypename_short : 'targetInput[selector]'\n```\n\nAvailable components:\n```\n{\n  street_number: '...',\n  route: '...',\n  country: '...',\n  administrative_area_level_1: '...',\n  administrative_area_level_2: '...',\n  administrative_area_level_3: '...',\n  administrative_area_level_4: '...',\n  administrative_area_level_5: '...',\n  colloquial_area: '...',\n  locality: '...',\n  sublocality: '...',\n  neighborhood: '...',\n  premise: '...',\n  subpremise: '...',\n  postal_code: '...',\n  point_of_interest: '...'\n}\n```\n* **Delay**\n\nYou can use the third parameter to enter a delay (ms).  \nThis delay will be used before displaying Google API predictions after each keypress.  \nThis can help you mitigate the amount of requests made on your account.\n\n\nThe `delay` parameter works as follows\n```\nnew AddressSearch(element, options, 500);\n```\n* **Methods**\n\nSee the [documentation](https://zenoo.github.io/address-search/AddressSearch.html) for the method definitions.  \n\n* **Example**\n\nSee this [JSFiddle](https://jsfiddle.net/Zenoo0/tqo1mxsc/) for a working example\n\n\n## Authors\n\n* **Zenoo** - *Initial work* - [Zenoo.fr](https://zenoo.fr)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenoo%2Faddress-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzenoo%2Faddress-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenoo%2Faddress-search/lists"}