Google Places Autocomplete
Test Google Places Autocomplete with usePlacesAutocompleteService hook
Search Places
Using Google Places API (New) with direct REST calls
Use ISO 3166-1 alpha-2 country codes. Leave empty for global search.
Session Token: ... | Language: en | Location: tw
💡 Tip: For specific venues, include terms like "coworking", "event venue", "conference center" in your search
About Google Places API (New)
This implementation uses the Google Places API (New) with direct REST calls.
Key differences from classic Places API:
- Uses REST API calls to places.googleapis.com/v1
- New field names (displayName vs name)
- Structured response format
- Better type filtering with includedPrimaryTypes
- Field masks for response optimization
Features:
- 500ms debounce with useDebounce hook
- Session tokens for billing optimization
- Direct REST API calls (no SDK needed)
- Configurable location filtering by country code
- No results placeholder with helpful message
- Default selection: Establishment (General)
Pricing (Places API New):
- Autocomplete (per session): $0.00283
- Place Details (Basic): $0.0025
- Place Details (Advanced): $0.017
- Place Details (Preferred): $0.025