Address Validation API 用戶端程式庫
本頁面說明如何開始使用 Address Validation API 適用的用戶端程式庫。
如要進一步瞭解用戶端程式庫,請參閱「用戶端程式庫說明」。
安裝用戶端程式庫
C#
詳情請參閱「設定 C# 開發環境」。
Install-Package Google.Maps.AddressValidation.V1 -Pre
設定驗證
使用用戶端程式庫時,您會使用應用程式預設憑證 (ADC) 進行驗證。如要瞭解如何設定 ADC,請參閱「提供應用程式預設憑證的憑證」。如要瞭解如何搭配用戶端程式庫使用 ADC,請參閱「使用用戶端程式庫進行驗證」。
使用用戶端程式庫
其他資源
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-02-25 (世界標準時間)。
[null,null,["上次更新時間:2025-02-25 (世界標準時間)。"],[[["This page provides instructions for getting started with the Address Validation API client libraries, focusing on C# implementation."],["You'll learn how to install the necessary C# client library using the `Install-Package` command."],["The guide details the authentication process using Application Default Credentials (ADC) and provides links for further setup information."],["It includes a C# code snippet demonstrating how to use the client library to validate an address."],["Links to additional resources like source code, issue tracker, and Stack Overflow are provided for further assistance."]]],["To start using the Address Validation API client library in C#, install the `Google.Maps.AddressValidation.V1` package. Authenticate via Application Default Credentials (ADC). Utilize the `AddressValidationClient` to validate an address, creating a `ValidateAddressRequest` with properties like `PostalAddress`, `PreviousResponseId`, `EnableUspsCass`, and `SessionToken`. Send the request to the client and obtain a `ValidateAddressResponse`. Refer to linked resources for further assistance.\n"]]