Maps Datasets API-Clientbibliotheken
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Auf dieser Seite wird beschrieben, wie Sie mit den Clientbibliotheken für die Maps Datasets API beginnen.
/** * This snippet has been automatically generated and should be regarded as a code template only. * It will require modifications to work. * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. *//** * Required. Parent project that will own the dataset. * Format: projects/{project} */// const parent = 'abc123'/** * Required. The dataset version to create. */// const dataset = {}// Imports the Mapsplatformdatasets libraryconst{MapsPlatformDatasetsClient}=require('@googlemaps/maps-platform-datasets').v1;// Instantiates a clientconstmapsplatformdatasetsClient=newMapsPlatformDatasetsClient();asyncfunctioncallCreateDataset(){// Construct requestconstrequest={parent,dataset,};// Run requestconstresponse=awaitmapsplatformdatasetsClient.createDataset(request);console.log(response);}callCreateDataset();
# This snippet has been automatically generated and should be regarded as a# code template only.# It will require modifications to work:# - It may require correct/in-range values for request initialization.# - It may require specifying regional endpoints when creating the service# client as shown in:# https://googleapis.dev/python/google-api-core/latest/client_options.htmlfromgoogle.mapsimportmapsplatformdatasets_v1defsample_create_dataset():# Create a clientclient=mapsplatformdatasets_v1.MapsPlatformDatasetsClient()# Initialize request argument(s)request=mapsplatformdatasets_v1.CreateDatasetRequest(parent="parent_value",)# Make the requestresponse=client.create_dataset(request=request)# Handle the responseprint(response)
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-11-02 (UTC)."],[],["To utilize the Maps Datasets API client libraries, first, install the library using `npm install @googlemaps/maps-platform-datasets` for Node.js or `pip install --upgrade google-maps-mapsplatformdatasets` for Python. Set up Application Default Credentials (ADC) for authentication. Node.js and Python code examples show creating a dataset by instantiating a client, constructing a request, and making the request. Additional resources include links to source code, issue trackers, and Stack Overflow.\n"]]