Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Développeurs de l'Espace économique européen (EEE)
Ce document décrit les conditions préalables à l'utilisation de Roads API, 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/31 (UTC).
[null,null,["Dernière mise à jour le 2025/08/31 (UTC)."],[[["\u003cp\u003eGoogle Maps Platform products are secured using API keys, which are unique alphanumeric strings linked to your billing account and project.\u003c/p\u003e\n"],["\u003cp\u003eYou can create and manage API keys through the Google Cloud Console or the Cloud SDK.\u003c/p\u003e\n"],["\u003cp\u003eTo enhance security, restrict your API keys by limiting their usage to specific APIs and IP addresses.\u003c/p\u003e\n"],["\u003cp\u003eInclude your API key in every Roads API request using the \u003ccode\u003ekey=\u003c/code\u003e parameter within the URL.\u003c/p\u003e\n"]]],["API keys are crucial for securing Google Maps Platform products, linking your project to your billing account. To create an API key, navigate to the Google Maps Platform Credentials page, and select \"Create credentials.\" Restricting keys is recommended to prevent unwarranted requests and potential financial burdens. This involves setting application and API restrictions within the Credentials page or via Cloud SDK. Finally, each Roads API request must include the API key in the URL, ensuring HTTPS and proper URL encoding.\n"],null,["# Set up the Roads API\n\n**European Economic Area (EEA) developers** If your billing address is in the European Economic Area, effective on 8 July 2025, the [Google Maps Platform EEA Terms of Service](https://cloud.google.com/terms/maps-platform/eea) will apply to your use of the Services. Functionality varies by region. [Learn more](/maps/comms/eea/faq).\n\nThis document describes the prerequisites for using the Roads 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. |"]]