Maps Datasets API 用戶端程式庫
本頁面說明如何開始使用 Maps Datasets API 適用的用戶端程式庫。
如要進一步瞭解用戶端程式庫,請參閱「用戶端程式庫說明」。
安裝用戶端程式庫
Node.js
詳情請參閱「設定 Node.js 開發環境」一文。
npm install @googlemaps/maps-platform-datasets
Python
詳情請參閱「設定 Python 開發環境」一文。
pip install --upgrade google-maps-mapsplatformdatasets
設定驗證方法
使用用戶端程式庫時,您會使用應用程式預設憑證 (ADC) 進行驗證。如要瞭解如何設定 ADC,請參閱「提供應用程式預設憑證的憑證」。如要瞭解如何搭配用戶端程式庫使用 ADC,請參閱「使用用戶端程式庫進行驗證」。
使用用戶端程式庫
其他資源
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-02-28 (世界標準時間)。
[null,null,["上次更新時間:2025-02-28 (世界標準時間)。"],[[["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"]]