
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
node-googleplaces
Advanced tools
User-friendly and lightweight client for the Google Places JSON API. Supports promises and callbacks.
> npm install node-googleplaces
Parameter JSON inputs are exactly as described on the web API page minus the API Key.
import GooglePlaces from 'node-googleplaces';
const places = new GooglePlaces(<API KEY HERE>);
const params = {
location: '49.250964,-123.102192',
radius: 1000
};
// Callback
places.nearbySearch(query, (err, res) => {
console.log(res.body);
});
// Promise
places.nearbySearch(query).then((res) => {
console.log(res.body);
});
places.nearbySearch(query[, callback])
places.textSearch(query[, callback])
places.radarSearch(query[, callback])
places.details(query[, callback])
places.autocomplete(query[, callback])
places.queryAutocomplete(query[, callback])
places.photo(query[, callback])
places.add(query[, callback])
places.delete(query[, callback])
> GOOGLE_API_KEY=<API_KEY_HERE> npm test
Note that the tests currently take up 62
quota requests when run with a valid key.
Google Places also supports XML output, why doesn't your library have that?
I did mention that this library is opinionated. I like JSON way better than XML. If you use XML you deserve to use something else.
I entered query [query here] into [function here] and it gave me an error. This sucks.
That wasn't a question, and yes it does suck. This library is unassuming, which means it will not fill in any missing required attributes in your query for you. Make sure you read Google's documentation properly before using this.
Google.
MIT
FAQs
Node.js client for the Google Places API
The npm package node-googleplaces receives a total of 144 weekly downloads. As such, node-googleplaces popularity was classified as not popular.
We found that node-googleplaces 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.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.