

Java is a registered trademark of Oracle and/or its affiliates.Access to the most current maps and traffic flow information will help your navigation system function more efficiently and accurately.

For details, see the Google Developers Site Policies. In the following example, replace YOUR_API_KEY with yourĮxcept as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. You must include an API key with every Maps Embed API request. Gcloud alpha services api-keys update "projects/ PROJECT/keys/ KEY_ID" \ Gcloud services api-keys list -project=" PROJECT"Ĭlear existing restrictions on existing key. You must also enable and select the corresponding API in this list. Similarly, if your project uses other services in the JavaScript API If your project uses Places Library, also select Places API.If the Maps Embed API is not listed, you need to


When restricting an API key in the Cloud Console,Īpplication restrictions override any APIs enabled under API restrictions.įollow best practices by creating a separate API key for each app, and for each platform Restricting API keys adds security to your application by Google strongly recommends that you restrict your API keys by limiting their usage to those onlyĪPIs needed for your application. The new API key is listed on the Credentials page under API keys.Ĭloud SDK gcloud alpha services api-keys create \ The API key created dialog displays your newly created API key. On the Credentials page, click Create credentials > API key. Go to the Google Maps Platform > Credentials page.
