{"id":18240682,"url":"https://github.com/samhess/vue3-address-input","last_synced_at":"2025-07-16T22:36:16.598Z","repository":{"id":57700341,"uuid":"497673424","full_name":"samhess/vue3-address-input","owner":"samhess","description":"Vue 3 Address Input with Mapbox and Bootstrap Integration","archived":false,"fork":false,"pushed_at":"2022-06-07T07:35:47.000Z","size":365,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T13:13:37.218Z","etag":null,"topics":["autocomplete","bootstrap5","mapbox","vitejs","vue3"],"latest_commit_sha":null,"homepage":"https://samhess.github.io/vue3-address-input/index.html","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samhess.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-29T18:19:13.000Z","updated_at":"2024-10-02T08:31:22.000Z","dependencies_parsed_at":"2022-09-26T21:10:45.675Z","dependency_job_id":null,"html_url":"https://github.com/samhess/vue3-address-input","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samhess%2Fvue3-address-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samhess%2Fvue3-address-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samhess%2Fvue3-address-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samhess%2Fvue3-address-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samhess","download_url":"https://codeload.github.com/samhess/vue3-address-input/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247152862,"owners_count":20892566,"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":["autocomplete","bootstrap5","mapbox","vitejs","vue3"],"created_at":"2024-11-05T05:04:21.246Z","updated_at":"2025-04-04T09:30:46.243Z","avatar_url":"https://github.com/samhess.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vue Component for Address Completion\n\nThis is a Vue 3 Single File Components (SFC) for address autocompletion. It integrates with \n[Mapbox Geocoding API](https://docs.mapbox.com/api/search/geocoding/) and [Bootstrap 5](https://getbootstrap.com).\n\nA current build of the component can be found in the *dist* directory.\n\nA current build of the example app can be found in the *docs* directory so it can be served on GitHub Pages.\n\n## Installation\n```bash\nnpm install @samhess/vue-address-input\n```\n\n## Usage \n```html\n\u003ctemplate\u003e\n  \u003cAddressInput @addressSelect=\"getAddress\" :mapboxOptions=\"mapboxOptions\"\u003e\u003c/AddressInput\u003e\n\u003c/template\u003e\n\n\u003cscript setup\u003e\n  import { reactive } from 'vue'\n  // import AddressInput from './components/AddressInput.vue'\n  // import AddressInput from './components/AddressInput.js'\n  import AddressInput from '@samhess/vue-address-input'\n  const editedItem = reactive({})\n  // mapbox options as per https://docs.mapbox.com/api/search/geocoding\n  const mapboxOptions = {\n    access_token : 'YOUR_TOKEN',\n    limit : 10,\n    language: 'de'\n  }\n  function getAddress(address) {\n    Object.assign(editedItem,address)\n  }\n\u003c/script\u003e\n```\n\n## Demo\n[Demo](https://samhess.github.io/vue3-address-input/index.html) is hosted on GitHub Pages ([docs](/docs) directory)\n\n## Properties\n\n| Property      | Subproperty   | Type    | Description                        | Required | Default |\n| :------:      | :-------:     | :---:   | :---------:                        | :------: | :-----: |\n| mapboxOptions |               | Object  | Mapbox options as indicated below  | Yes      |         |\n|               | .access_token | String  | Mapbox access token                | Yes      | ''      |\n|               | .limit        | String  | Limit of suggestions               | No       | 10      |\n|               | .proximity    | String  | Search near                        | No       |'ip'     |\n|               | .autocomplete | Boolean | Autocomplete search input          | No       | true    |\n|               | .fuzzyMatch   | Boolean | Not only exact match               | No       | true    |\n|               | .country      | String  | Limit to certain countries         | No       | ''   |\n|               | .language     | String  | Language for search and results    | No       | 'en'    |\n\nPlease refer to [Mapbox Geocoding API documentation](https://docs.mapbox.com/api/search/geocoding) for further information\n\n## Events\n\n| Event | Description |\n| :---: | :---------: |\n| **@addressSelect** | Triggered when user selects address. Returns object with selected address containing street, postcode, city state and country |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamhess%2Fvue3-address-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamhess%2Fvue3-address-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamhess%2Fvue3-address-input/lists"}