
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
google-maps-places
Advanced tools
Install with npm
npm install google-maps-places
Install with yarn
yarn add google-maps-places
const PlaceData = require("google-maps-places");
// Initialize with your Google Maps API key
const placeData = new PlaceData("YOUR_API_KEY");
// Get place data from a Google Maps URL
const placeFromUrl = await placeData.getFromUrl(
"https://www.google.com/maps/place/...",
true
);
// Get place data from a feature ID
const placeFromFeatureId = await placeData.getFromFeatureId(
"0x12345:0x67890",
false
);
// Get place data from a Google Place ID
const placeFromPlaceId = await placeData.getFromPlaceId("ChIJ...ABCD", true);
// Get place data using a search query
const placeFromQuery = await placeData.getFromQuery("The White House", false);
apiKey - string: Your Google Maps API key required for some operations.
[!NOTE] The API key is used to call an endpoint which falls under the SKU: Places API Text Search Essentials (IDs Only) which has unlimited free usage (Source: Google, Archived). The API key only required if you will use the method getFromQuery.
getFromUrl(url, clean)
url - string: A Google Maps place URL as explained hereclean - boolean: Whether to return a cleaned output. Defaults to false.getFromFeatureId(featureId, clean)
featureId - string: The feature ID of a place (format: "0x...:0x...").clean - boolean: Whether to return a cleaned output. Defaults to false.getFromPlaceId(placeId, clean)
placeId - string: The Google Place ID.clean - boolean: Whether to return a cleaned output. Defaults to false.getFromQuery(query, clean)
query - string: Search query to find the place.clean - boolean: Whether to return a cleaned output. Defaults to false.All methods return a Promise<object>: A promise that resolves to the place data in these formats depending on the value of clean.
All documentation related to API's and URL's used in this project can be found in the docs folder divided into endpoints for API's and urls for URL's. Note that everything included here was based on my reasearch, so errors could be present. A pull request is always welcome (see contributing)
This project is licensed under the MIT License - see the LICENSE file for details.
The MIT License is a permissive open-source license that allows users significant freedom with minimal conditions.
For full details, refer to the license text.
I welcome contributions from the community! Please see our CONTRIBUTING.md for details on how to contribute to this project.
Please note that this project is governed by a Code of Conduct. By participating, you are expected to uphold this code.
Special thanks to @marin-m for his outstanding work on the pbtk repository. His contributions and insights on protocol buffers were invaluable in my research and development process.
This project is not affiliated with, endorsed by, or associated with Google LLC or any of its products and services. All product and company names are trademarks or registered trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.
This project was created with the primary intent of serving as an educational tool and proof of concept. The objectives include:
This project is non-commercial and is not intended for any form of profit generation or business use. It is shared openly with the community to foster learning and collaboration.
We acknowledge and respect the intellectual property rights of Google and other third parties. Any content used from external sources is credited appropriately, and no proprietary data or materials are misused.
If you have any concerns or questions regarding the legality of this project, any specific legal queries or issues, please seek professional legal advice.
FAQs
A protocol buffer query string documentor
The npm package google-maps-places receives a total of 0 weekly downloads. As such, google-maps-places popularity was classified as not popular.
We found that google-maps-places 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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.