/** * 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)
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-03-21 (UTC) को अपडेट किया गया."],[[["This page provides instructions on getting started with the Maps Datasets API client libraries for Node.js and Python."],["You'll learn how to install the necessary client libraries using npm or pip."],["Authentication is handled using Application Default Credentials (ADC), and the page links to resources for setting up ADC."],["Code samples demonstrate basic usage of the client libraries, such as creating a dataset, for both Node.js and Python."],["Links to additional resources like source code, issue trackers, and Stack Overflow are provided for further assistance."]]],["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"]]