Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@pderas/vue2-geocoder
Advanced tools
A vue.js plugin to interact with Google Maps API.
A vue 2 plugin to interact with google maps api that will query the google maps API to retrieve location results.
import Geocoder from "@pderas/vue2-geocoder";
Vue.use(Geocoder, {
defaultCountryCode: null, // e.g. 'CA'
defaultLanguage: null, // e.g. 'en'
defaultMode: 'address', // or 'lat-lng'
googleMapsApiKey: GOOGLE_MAPS_API_KEY
});
General usage: Vue.$geocoder.[FUNCTION_NAME]
Vue.$geocoder.setDefaultMode('address'); // this is default
var addressObj = {
address_line_1: '1600 Amphitheatre Parkway',
address_line_2: '',
city: 'Mountain View',
state: 'CA', // province also valid
zip_code: '94043', // postal_code also valid
country: 'United States'
}
Vue.$geocoder.send(addressObj, response => { console.log(response) });
Its important to note that even if your country is set in the address object to the specified country, it is still possible to pull results from other countries. If you want to limit the results to a specific country, you must set the country code in the geocoder.
Vue.$geocoder.setDefaultCountryCode('CA');
Vue.$geocoder.setDefaultMode('lat-lng');
var latLngObj = {
lat: 37.421512,
lng: -122.084101
}
Vue.$geocoder.send(latLngObj, response => { console.log(response) });
To get result in your language you should set language code in the geocoder
Vue.$geocoder.setDefaultLanguage('en') // this is default
This project is covered under the MIT License. Feel free to use it wherever you like.
FAQs
A vue 2 plugin to interact with google maps api
The npm package @pderas/vue2-geocoder receives a total of 0 weekly downloads. As such, @pderas/vue2-geocoder popularity was classified as not popular.
We found that @pderas/vue2-geocoder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.