Connect your app to Google Places to easily search, suggest, and display real-world places.
Create (or choose) a project in Google Cloud
Enable the places API (New)
Generate your API Key
REQUEST_DENIED
later on, it usually means billing isn’t enabled or your API key restrictions are too tight. Turning on billing and loosening restrictions during testing often fixes this. If you plan to display a map in the browser, you should also enable the Maps JavaScript API and use a browser key restricted to your site.Choose the integration
Provide your API key
GOOGLE_PLACES_API_KEY
. Base44 will automatically enable backend functions for you.Build your app
Create an app to plan my next trip. I will tell you the city, you will suggest five places, and you will show them on a Google Places map.
Test with a sample trip
Access your existing app
“Create an app to plan my next trip. I will tell you the city and you will choose five places for me to visit.”
Enable backend functions
Connect your app to Google Places using the AI chat
Connect this app to Google Places using the Places API (New). Ask me for GOOGLE_PLACES_API_KEY and save it as a Secret. Create backend functions to:
- search by text and return id, displayName, formattedAddress, location, types
- get details by place_id with the same fields
All calls must run from the backendonly.
When prompted by the AI chat, paste your API key
Update GOOGLE_PLACES_API_KEY
Build the interface
Add a Trip Planner page with:
- a City field
- 5 auto-suggest place inputs powered by the backend
When a place is selected, save place_id, name, formatted_address, latitude, longitude, types.
Add a Google Map that places a marker for each saved place and automatically fits bounds to show them all. Include a Reset button.
Test your app