google-place-detail-lib
v1.0.4
Published
A simple library to get Google Place details using Place ID
Downloads
23
Readme
Google Place Detail Library
A simple Node.js library to fetch Google Place details using the Google Place ID.
Disclaimer: This library is not an official Google product and is not endorsed by or affiliated with Google in any way. Use it at your own risk.
Installation
To install the library, run the following command:
npm install google-place-detail-lib
Usage
To use the library, follow the example below:
ES Module
import googlePlaceDetail from 'google-place-detail-lib';
const placeId = 'ChIJN1t_tDeuEmsRUsoyG83frY4'; // Example Google Place ID
const language = 'en'; // Example language code
googlePlaceDetail(placeId, language)
.then(details => {
console.log(details);
})
.catch(error => {
console.error(error);
});
Contact
For any inquiries, please contact me at: [email protected]