Skip to main content

Google 3D Tiles API Key

Add your own Google 3D Tiles API key to Swyvl

Updated yesterday

Introduction

Google 3D Tiles is included with Swyvl, however if you have your own Google Maps Platform account, you can provide your own API key for Google 3D Tiles.

This allows:

  • Greater usage flexibility (beyond Swyvl’s fair use limits)

  • Project-level billing and quota control under your own Google account

The API key is managed at the Workspace level, and you’ll need to add one key per Workspace. However, you can use the same API key across multiple Workspaces if desired.


How to Get Your Google 3D Tiles API Key

  1. Go to the Google Cloud Console:
    Visit the Google Cloud Console.

  2. Create a New Project:

    • Click the project dropdown in the header.

    • Select "New Project" to create a new one if needed.

  3. Enable the Map Tiles API:

    • Navigate to the APIs & Services Library.

    • Search for "Map Tiles API" and enable it for your project.

  4. Set Up Billing:
    Configure a billing profile to activate your API key.

  5. Generate Your API Key:

    • Go to the "Keys & Credentials" page.

    • Copy your newly created API key for later use.

  6. Restrict Your API Key (Optional but Recommended):

    • Restrict the key to Swyvl usage only (e.g., https://build.swyvl.io).

    • Set restrictions to ensure security and prevent unauthorized usage.

  7. Understand Quotas and Costs:

    • The Map Tiles API operates on a pay-as-you-go model.

    • Your first $200 of usage is free each month. For more details, visit Google Maps Platform Billing.


Adding Your API Key to Swyvl

  1. Navigate to Workspace Settings:

    • Go to your Workspace dashboard in Swyvl.

    • Open the Settings menu.

  2. Enter Your API Key:

    • Locate the Google 3D Tiles API Key field.

    • Paste your copied API key into this field.

  3. Save Changes:

    • Click Save to apply your settings.

    • The Google 3D Tiles basemap will now be available for use across all projects in the Workspace.

Note: If when adding your API key you receive a warning 'Could not verify API key', remove the restriction to the domain https://build.swyvl.io in the Google Cloud Console. We have noticed that some new accounts don't work with this option enabled.


Tips and Notes

  • Restricting Your API Key: Adding restrictions ensures the key can only be used with Swyvl, minimizing security risks.

  • Monitor Usage: Keep an eye on your API usage to avoid unexpected charges.

  • Check Permissions: Ensure your Google Cloud project has the necessary permissions to enable and use APIs.

Did this answer your question?