{"id":13429214,"url":"https://github.com/ridermansb/vue-gmaps","last_synced_at":"2025-04-09T18:24:29.239Z","repository":{"id":11609024,"uuid":"70107411","full_name":"Ridermansb/vue-gmaps","owner":"Ridermansb","description":"Search places and address using Google Maps API","archived":false,"fork":false,"pushed_at":"2023-10-09T21:40:12.000Z","size":680,"stargazers_count":117,"open_issues_count":5,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-02T12:48:09.598Z","etag":null,"topics":["google-maps","hacktoberfest","vue","vue-component","vue-gmaps","vuejs2"],"latest_commit_sha":null,"homepage":"https://ridermansb.github.io/vue-gmaps","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ridermansb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-10-05T23:24:52.000Z","updated_at":"2023-09-19T08:40:37.000Z","dependencies_parsed_at":"2024-01-02T23:34:39.222Z","dependency_job_id":"dae55cfe-a59c-4ca5-aea9-d26da1247a02","html_url":"https://github.com/Ridermansb/vue-gmaps","commit_stats":{"total_commits":61,"total_committers":3,"mean_commits":"20.333333333333332","dds":"0.34426229508196726","last_synced_commit":"af5ce64577f58d7ef6d512aab791e21cd21425f8"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ridermansb%2Fvue-gmaps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ridermansb%2Fvue-gmaps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ridermansb%2Fvue-gmaps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ridermansb%2Fvue-gmaps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ridermansb","download_url":"https://codeload.github.com/Ridermansb/vue-gmaps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248086285,"owners_count":21045313,"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":["google-maps","hacktoberfest","vue","vue-component","vue-gmaps","vuejs2"],"created_at":"2024-07-31T02:00:30.773Z","updated_at":"2025-04-09T18:24:29.222Z","avatar_url":"https://github.com/Ridermansb.png","language":"JavaScript","funding_links":[],"categories":["Awesome Vue.js","Awesome Vue.js [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)","UI组件","Components \u0026 Libraries","UI Components","UI Components [🔝](#readme)"],"sub_categories":["Autocomplete","形成","UI Components","Form"],"readme":"# Vue-Gmaps\n\u003e Search address and places using Google Maps API\n\n[Buy me a cofffe][1] please :)\n\nhttps://buymeacoff.ee/ridermansb\n\n[![Travis](https://img.shields.io/travis/Ridermansb/vue-gmaps.svg?maxAge=2592000?style=flat-square)](https://travis-ci.org/Ridermansb/vue-gmaps)\n[![bitHound](https://img.shields.io/bithound/dependencies/github/ridermansb/vue-gmaps.svg?maxAge=2592000?style=flat-square)](https://www.bithound.io/github/Ridermansb/vue-gmaps) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)    \n\n[![NPM](https://nodei.co/npm/vue-gmaps.png?downloads=true\u0026stars=true)](https://nodei.co/npm/vue-gmaps?downloads=true\u0026stars=true)\n\n![Demo](https://github.com/Ridermansb/vue-gmaps/blob/master/vue-gmaps.gif)\n\n## Installation\n\n```bash\nnpm i -S vue-gmaps\n```\n\nAnd in your `main.js` ...\n\n```javascript\n// main.js\nimport VueGmaps from 'vue-gmaps'\nVue.use(VueGmaps, {\n  key: '\u003cyour api here\u003e'\n})\n```\n\nOptions are:\n\n* **key** \u003cRequired!\u003e,\n* **libraries** \u003cDefault= [ 'places' ]\u003e,\n* **client**\n* **version** \u003cDefault='3'\u003e,\n* **loadGoogleApi** \u003cDefault=true\u003e\n\n\nlibraries: ['places'],\n  version: '3'****\n\n\n## Basic usage\n\nAdd the directive `v-gmaps-searchbox` into your input\n\n```html\n\u003cinput v-model=vm.searchPlace v-gmaps-searchbox=vm\u003e\n```\n\nThis will popule your `vm.place` object with details about selected place.\n\n## Features\n\n### Specify property\n\nBy default, `vm.place` is used, you can change this passing an argument to directive e.g `:anotherProperty`\n\n```html\n\u003cinput v-gmaps-searchbox:myProperty=vm\u003e\n```\n\nSo `vm.myProperty` will be filled with details about selected place\n\n### Specify whats fields\n\nAll information about place is put is filled, to determinate whats fields should be use, you can specify a modifiers like this `.name.website.formatted_address.geometry`\n\n```html\n\u003cinput v-gmaps-searchbox:myProperty.name.website.formatted_address.geometry=vm\u003e\n```\n\nSo your `vm` will set property `myProperty` like this\n\n```javascript\n{\n    myProperty: {\n        name: \u003cvalue_from_result\u003e,\n        website: \u003cvalue_from_result\u003e,\n        formatted_address: \u003cvalue_from_result\u003e,\n        geometry: \u003cvalue_from_result\u003e,\n    }\n}\n```\n\n[1]: https://buymeacoff.ee/ridermansb\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fridermansb%2Fvue-gmaps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fridermansb%2Fvue-gmaps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fridermansb%2Fvue-gmaps/lists"}