- Turn addresses into coordinates and coordinates into addresses
- Calculate routes, travel times, and distance matrices
- Search for places and businesses and show their details, hours, and ratings
- Show interactive or embedded maps with markers and address autocomplete, or static map images
- Validate addresses and snap GPS traces to roads
- Look up weather, air quality, pollen, and solar data for a location
- Use Aerial View, Geolocation, Elevation, Time Zone, and Area Insights
Common use cases and example apps
These examples show what you can build with Google Maps Platform, each with a prompt to start from.How Google Maps Platform connections work
Google Maps Platform uses two API keys because some of its APIs run on the server and others in the browser:- The server key is private. Lovable’s connector gateway uses it to call server-side APIs such as Geocoding, Routes, Places, Weather, and Air Quality. It never reaches the browser.
- The browser key is public. Your app’s frontend uses it to load maps: the Maps JavaScript API for interactive maps, plus map embeds and static map images. Because the frontend loads it, the browser key appears in your published app’s code.
REQUEST_DENIED if called from the browser.
The gateway accepts up to 6,000 server-side requests in any 24-hour period per workspace for the managed connection, and a separate 6,000 for connections with your own credentials. Requests the browser makes to Google with the browser key do not count.
How to connect Google Maps Platform
Who can create Google Maps Platform connections depends on your plan and workspace settings. App + chat connectors are available by default. On Business and Enterprise plans, Who can create connections and clients starts at Admins. Some Enterprise workspaces start at No one, which disables the connector. An admin or owner changes it in Connectors → Admin settings → App + chat connectors. When adding a connection, you choose between two options:- Managed by Lovable: Lovable provides and manages the credentials, and usage costs Lovable credits. You don’t need a Google Cloud account. Maps do not load on custom domains.
- Use your own credentials: connect your own server and browser API keys, and Google bills your Google Cloud account. Required for custom domains.
- Managed by Lovable
- Use your own credentials
Open Google Maps Platform in Connectors
Connect
Pricing
With Managed by Lovable, usage costs 4 Lovable credits per US dollar of Google Maps Platform usage, or 2 Lovable credits on Business plans. Lovable prices each request at Google’s list price for its lowest usage tier, and Google’s monthly free usage does not apply. See Google Maps Platform pricing for the price of each API. Lovable charges the workspace the connection belongs to, and the usage appears under Run credits. When you create a managed connection, Lovable shows the usage terms next to Connect, and you accept them when you connect. For a managed connection created on or after November 19, 2026, Lovable charges usage from when the connection is created. Managed connections created before November 19, 2026 keep working without charges until December 15, 2026, 00:00 UTC. To keep a connection working after that, the person who created it, or the member it was transferred to, reviews the estimated cost and accepts the usage terms. If that person has not accepted the terms by then, Lovable pauses the connection’s requests until they do. To accept the terms for a connection you created or that was transferred to you, select Review and accept in the project chat of a project that uses the connection, or on the connection in Connectors. With Use your own credentials, Google bills usage to your Google Cloud billing account, and Lovable credits do not apply.Limitations
The Google Maps Platform connector cannot:- Load maps on a custom domain with the managed connection. The managed browser key is restricted to Lovable’s domains.
- Exceed 6,000 server-side gateway requests in any 24-hour period per workspace, counted separately for the managed connection and for connections with your own credentials.
- Call the legacy Directions, Distance Matrix, or original Places APIs. Google has deprecated them, and the gateway rejects those paths.
- Support per-end-user Google login. Each connection represents a single set of keys shared across all projects linked to it.
- Work from territories where Google prohibits Maps Platform: China, Cuba, Iran, North Korea, Syria, Vietnam, and the Crimea, Sevastopol, Donetsk, and Luhansk regions of Ukraine. Lovable blocks new connections and gateway requests from those locations and links to Google’s list.
Troubleshooting
Use these checks when connecting fails or a Google Maps Platform request returns an unexpected status.Maps do not load and the browser console shows "RefererNotAllowedMapError"
Maps do not load and the browser console shows "RefererNotAllowedMapError"
Server-side requests fail with 403 "API_KEY_HTTP_REFERRER_BLOCKED"
Server-side requests fail with 403 "API_KEY_HTTP_REFERRER_BLOCKED"
Server-side requests fail with "REQUEST_DENIED" or 403 "API_KEY_SERVICE_BLOCKED"
Server-side requests fail with "REQUEST_DENIED" or 403 "API_KEY_SERVICE_BLOCKED"
Geocoding or routing fails when called from the browser
Geocoding or routing fails when called from the browser
Autocomplete, place details, or map pin clicks stop working while the map still loads
Autocomplete, place details, or map pin clicks stop working while the map still loads
Server-side requests fail with 429 "Too Many Requests"
Server-side requests fail with 429 "Too Many Requests"
Requests fail with 403 "metered_consent_required"
Requests fail with 403 "metered_consent_required"
Manage your Google Maps Platform connection
Connections are managed from Connectors: select Google Maps Platform, then open the connection.- Unlink projects to remove Google Maps Platform access from specific projects while keeping the connection available for others. See Unlink projects from a connection for the steps.
- Delete the connection to remove it from the workspace entirely. Deleting is permanent. It removes the credentials from all linked projects, and app features that use Google Maps Platform stop working until a new connection is added. See Delete a connection for the steps and who can delete.