
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@xapp/stentor-service-google-places
Advanced tools
Service for integrating with Google Places API, built on Stentor's FetchService.
npm install @xapp/stentor-service-google-places
import { GooglePlacesService } from "@xapp/stentor-service-google-places";
const service = new GooglePlacesService({
apiKey: "your-google-places-api-key"
});
import { GooglePlacesService } from "@xapp/stentor-service-google-places";
const service = new GooglePlacesService({
authenticate: async () => {
// Your authentication logic here
return { apiKey: await getApiKeyFromSomewhere() };
}
});
// Get basic place details
const placeDetails = await service.getPlaceDetails("ChIJN1t_tDeuEmsRUsoyG83frY4");
// Get specific fields only
const placeDetails = await service.getPlaceDetails(
"ChIJN1t_tDeuEmsRUsoyG83frY4",
["name", "formatted_address", "geometry", "photos"]
);
apiKey?: string - Google Places API keyauthenticate?: () => Promise<{ apiKey: string }> - Function that returns API keyurlBase?: string - Custom API base URL (defaults to Google Places API)getPlaceDetails(placeId: string, fields?: string[]): Promise<GooglePlaceDetails>Retrieves detailed information about a place.
Parameters:
placeId - The unique identifier for a placefields - Optional array of fields to return (reduces API cost)Returns: Promise resolving to place details
Available Fields:
place_id, name, formatted_address, geometryformatted_phone_number, international_phone_number, websitephotos, rating, user_ratings_total, reviews, price_levelopening_hours, business_status, types, vicinityThe service throws descriptive errors for:
All TypeScript interfaces are exported for use in your application:
import {
GooglePlaceDetails,
GooglePlaceDetailsResponse,
GooglePlacesGeometry,
GooglePlacesPhoto,
GooglePlacesReview
} from "@xapp/stentor-service-google-places";
FAQs
Service to integrate with Google Places API
The npm package @xapp/stentor-service-google-places receives a total of 160 weekly downloads. As such, @xapp/stentor-service-google-places popularity was classified as not popular.
We found that @xapp/stentor-service-google-places demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.