Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Ce document décrit les conditions préalables à l'utilisation de l'API Maps JavaScript, comment l'activer et comment effectuer une requête authentifiée.
checklist
Assurez-vous de remplir les conditions préalables.
settings
Activez l'API dans votre projet Google Cloud.
verified_user
Configurez une clé API pour effectuer une requête API authentifiée.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/08/06 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/08/06 (UTC)."],[[["\u003cp\u003eGoogle Maps Platform requires an API key for authentication and billing purposes, associating your project with a unique alphanumeric string.\u003c/p\u003e\n"],["\u003cp\u003eYou can create and manage API keys via the Google Cloud Console or the Cloud SDK, enabling access and specifying restrictions for security.\u003c/p\u003e\n"],["\u003cp\u003eRestricting API keys is highly recommended, limiting usage to specific applications and websites for enhanced security.\u003c/p\u003e\n"],["\u003cp\u003eInclude your API key in every Maps JavaScript API request, replacing \u003ccode\u003eYOUR_API_KEY\u003c/code\u003e in the provided script snippet.\u003c/p\u003e\n"]]],["Google Maps Platform requires API keys for authentication and billing. To create an API key, navigate to the Google Maps Platform Credentials page and select \"Create credentials \\\u003e API key.\" Restricting API keys to specific applications and APIs is strongly recommended for security and to prevent financial abuse. This can be done via the console or Cloud SDK by setting application and API restrictions. Finally, include the API key in every Maps JavaScript API request.\n"],null,["This document describes the prerequisites for using the Maps JavaScript API, how to enable it,\nand then how to make an authenticated request.\n\n|--------------------------------------------------------------------|---|-------------------------------------------------------------------------|---|-----------------------------------------------------------------------------------------------------|\n| checklist 1. Prerequisites Ensure that you meet the prerequisites. | | settings 2. Enable the API Enable the API in your Google Cloud project. | | verified_user 3. Make your first request Configure an API key to make an authenticated API request. |"]]