Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Per effettuare qualsiasi richiesta all'API Maps Datasets, devi includere:
Il numero o l'ID del tuo progetto Google Cloud nell'intestazione
X-Goog-User-Project della richiesta. Questo valore determina il progetto utilizzato per i calcoli della fatturazione e della quota di utilizzo.
Un token OAuth nell'intestazione Authorization della richiesta. Per saperne di più sull'utilizzo di OAuth con l'API Maps Datasets, consulta Utilizzare OAuth.
Un numero o un ID progetto Google Cloud nell'URL della richiesta. Questo valore
specifica il progetto contenente il set di dati. Anche se questo progetto di solito
è lo stesso specificato nell'intestazione X-Goog-User-Project, non
è obbligatorio che lo sia.
L'ID set di dati nell'URL della richiesta. Ogni volta che esegui un'azione su un
set di dati specifico, trasmetti l'ID del set di dati come parte dell'URL della richiesta.
Puoi includere il comando gcloud direttamente nell'intestazione Authorization di un comando cURL per generare un nuovo token a ogni richiesta, come mostrato nell'esempio precedente.
In alternativa, puoi impostare una variabile di ambiente contenente il token e poi
passare la variabile di ambiente come parte della richiesta:
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-10 UTC."],[[["\u003cp\u003eAll Maps Datasets API requests require a Google Cloud project number or ID for billing and usage quota, specified in the \u003ccode\u003eX-Goog-User-Project\u003c/code\u003e header or using a service account.\u003c/p\u003e\n"],["\u003cp\u003eAn OAuth token is necessary for authentication and should be included in the \u003ccode\u003eAuthorization\u003c/code\u003e header of each request.\u003c/p\u003e\n"],["\u003cp\u003eThe request URL must contain the Google Cloud project number or ID and the dataset ID to specify the location of the dataset.\u003c/p\u003e\n"],["\u003cp\u003eAdditional parameters may be required for certain requests, as detailed in the specific request documentation.\u003c/p\u003e\n"],["\u003cp\u003eYou can obtain your Google Cloud project number or ID from the project's Overview page in the Cloud Console and generate an OAuth token using the \u003ccode\u003egcloud\u003c/code\u003e command.\u003c/p\u003e\n"]]],["To interact with the Maps Datasets API, requests must include: the Google Cloud project number or ID in the `X-Goog-User-Project` header for billing and quota (unless using a service account); an OAuth token in the `Authorization` header; the project number or ID in the URL; and the dataset ID in the URL. The project number and ID can be found on the project's overview page. An OAuth token can be generated using the `gcloud auth application-default print-access-token` command.\n"],null,[]]