
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@guillaumedeslandes/vue2-geocoder
Advanced tools
A vue 2 plugin to interact with google maps api
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, {
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'); // this is default
var latLngObj = {
lat: 37.421512,
lng: -122.084101,
result_type: 'administrative_area_level_1' // optional
}
Vue.$geocoder.send(latLngObj, response => { console.log(response) });
Vue.$geocoder.setDefaultMode('place_id'); // this is default
var placeObj = {
place_id: 'ChIJD7fiBh9u5kcRYJSMaMOCCwQ'
}
Vue.$geocoder.send(placeObj, response => { console.log(response) });
Vue.$geocoder.setDefaultMode('place_id'); // this is default
var placeObj = {
place_id: 'ChIJD7fiBh9u5kcRYJSMaMOCCwQ',
language: 'en'
}
Vue.$geocoder.send(placeObj, response => { console.log(response) });
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 @guillaumedeslandes/vue2-geocoder receives a total of 4 weekly downloads. As such, @guillaumedeslandes/vue2-geocoder popularity was classified as not popular.
We found that @guillaumedeslandes/vue2-geocoder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.