Skip to main content
Google Maps Platform is Google’s suite of location APIs and SDKs for geocoding, routing, places, and interactive maps. The Google Maps Platform connector lets your Lovable app call Google’s location APIs through Lovable’s connector gateway and show interactive maps in the browser. It’s designed for apps that need location, mapping, navigation, or place data. Google Maps Platform is available as an app + chat connector: one shared connection that works in Chats, in the project chat while you build, and in your published apps. With Google Maps Platform, your app can:
  • 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
Google Maps Platform is a good fit when your app needs Google’s map and place data, or when you want a working map in minutes with the managed connection.

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.
Everything except loading maps goes through the gateway with the server key, including address autocomplete and place details. The managed browser key works only with the Maps JavaScript, Maps Embed, Maps Static, and Map Tiles APIs. When you use your own credentials, you restrict your browser key the same way. Places, Geocoding, Routes, and other server-side APIs fail with 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.
When the connection is created, you can link it to the projects where you want to use it. Anyone building in a project can ask Lovable in the project chat to link their project to it. Linking follows the connection’s access rules. Follow the setup steps below for the option you want.
Choose this option for the fastest setup, with no Google Cloud account or API keys. See Pricing for what it costs.
The managed connection works on *.lovable.app domains and does not load maps on a custom domain. Lovable notes this on the connection and warns in the Publish dialog when a project with a custom domain uses a managed connection. To use Google Maps Platform on a custom domain, add a connection with Use your own credentials and put the custom domain in your browser key’s website restrictions.
You can create one managed Google Maps Platform connection per workspace. If one exists, the Managed by Lovable option is unavailable in the form until you delete it.
1

Open Google Maps Platform in Connectors

Open Connectors and select Google Maps Platform. For the other places to open the catalog from, see Where to find connectors.
2

Connect

Click Connect on the connector page. Lovable shows the usage terms next to the button, and you accept them when you click it. Lovable creates the connection and shares it with the entire workspace.
To name the connection or limit who can use it, create it from the form instead. On the connector page, click More options, then App + chat connector, and select Managed by Lovable under Configure connection. To name the connection, change the name under Details. To limit who can use the connection, click Restrict to specific people under Sharing. Click Connect at the bottom of the form to create it.See Who can use connections and clients for more information.
When connected, anyone building in a project can ask Lovable in the project chat to link their project to Google Maps Platform. Linking follows the connection’s access rules. Your Lovable apps can then geocode, route, search places, and show maps with Google Maps Platform.

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.
The browser key’s website restrictions do not include the domain the app is served on. Add the exact origin, including protocol and subdomain, on the Google Cloud Credentials page. With a managed connection on a custom domain, this is expected: switch to your own credentials.
The server key has a website restriction. Gateway requests carry no referrer, so Google blocks every call. Edit the key in Google Cloud and set Application restrictions to None or IP addresses with Lovable’s gateway ranges.
Either the API is not enabled in your Google Cloud project, or the server key’s API restrictions do not include it. Check both in the Google Cloud console.
The browser key is authorized only for loading maps. Ask Lovable to move geocoding, routing, and other server-side calls to the backend so they go through the gateway with the server key.
The app calls the Places API from the browser with the managed browser key. Since September 10, 2026, the managed browser key does not authorize Places API calls. Apps built earlier that use browser autocomplete or place details fail on those features, even though the app has not changed. Reconnecting the connection or changing referrer settings does not restore access. Ask Lovable to move autocomplete, place search, and place details to the backend so they go through the gateway with the server key.
The workspace has made 6,000 gateway requests in the last 24 hours with that connection option. Requests succeed again as older ones fall outside the 24-hour period. Ask Lovable to cache repeated lookups, debounce autocomplete, reduce call volume, and keep map loads on the browser key, which does not count toward the limit.

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.