Librerie client dell'API Address Validation
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questa pagina mostra come iniziare a utilizzare le librerie client per l'API Address Validation.
Scopri di più sulle librerie client in Descrizione delle librerie client.
installa la libreria client
Configura l'autenticazione
Quando utilizzi le librerie client, utilizzi le
Credenziali predefinite dell'applicazione (ADC)
per l'autenticazione. Per informazioni su come configurare le credenziali predefinite dell'applicazione, vedi
Fornire credenziali per le credenziali predefinite dell'applicazione.
Per informazioni sull'utilizzo di ADC con le librerie client, consulta la sezione
Autenticarsi utilizzando le librerie client.
Utilizzare la libreria client
Consulta gli
esempi di librerie client
per esempi di come inviare richieste API utilizzando le librerie client.
Risorse aggiuntive
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-08-31 UTC.
[null,null,["Ultimo aggiornamento 2025-08-31 UTC."],[[["\u003cp\u003eThis page provides instructions for getting started with the Address Validation API client libraries, focusing on C# implementation.\u003c/p\u003e\n"],["\u003cp\u003eYou'll learn how to install the necessary C# client library using the \u003ccode\u003eInstall-Package\u003c/code\u003e command.\u003c/p\u003e\n"],["\u003cp\u003eThe guide details the authentication process using Application Default Credentials (ADC) and provides links for further setup information.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a C# code snippet demonstrating how to use the client library to validate an address.\u003c/p\u003e\n"],["\u003cp\u003eLinks to additional resources like source code, issue tracker, and Stack Overflow are provided for further assistance.\u003c/p\u003e\n"]]],["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"],null,["This page shows how to get started with the client libraries for\nAddress Validation API.\n\nRead more about the client libraries in [Client Libraries\nExplained](https://cloud.google.com/apis/docs/client-libraries-explained).\n\nInstall the client library \n\nJava\n\nFor more information, see\n[Setting Up a Java Development Environment](https://cloud.google.com/java/docs/setup)\nand [Using Cloud Client Libraries](https://cloud.google.com/java/docs/bom).\n\nFor the complete installation instructions, see [Google Address Validation API Client for Java](https://github.com/googleapis/google-cloud-java/blob/main/java-maps-addressvalidation/README.md).\n\nGo \n\n```\ngo get cloud.google.com/go/maps\n```\n\nFor more information, see\n[Setting Up a Go Development Environment](https://cloud.google.com/go/docs/setup).\n\nFor the complete installation instructions, see [Google Address Validation API Client for Go](https://github.com/googleapis/google-cloud-go/tree/main/maps/addressvalidation/apiv1).\n\nNodeJS \n\n```\nnpm install @googlemaps/addressvalidation\n```\n\nFor more information, see\n[Setting Up a Node.js Development Environment](https://cloud.google.com/nodejs/docs/setup).\n\nFor the complete installation instructions, see [Google Address Validation API Client for NodeJS](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-maps-addressvalidation).\n\nPython \n\n```\npip install google-maps-addressvalidation\n```\n\nFor more information, see\n[Setting Up a Python Development Environment](https://cloud.google.com/python/docs/setup).\n\nFor the complete installation instructions, see [Google Address Validation API Client for Python](https://github.com/googleapis/google-cloud-python/tree/main/packages/google-maps-addressvalidation).\n\n.NET \n\n```\nInstall-Package Google.Maps.AddressValidation.V1 -Pre\n```\n\nFor more information, see\n[Setting Up a C# Development Environment](https://cloud.google.com/dotnet/docs/setup)\nand\n[Google Address Validation API Client for .NET](https://github.com/googleapis/google-cloud-dotnet/tree/main/apis/Google.Maps.AddressValidation.V1).\n\nSet up authentication\n\nWhen you use client libraries, you use\n[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials)\nto authenticate. For information about setting up ADC, see\n[Provide credentials for Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc).\nFor information about using ADC with client libraries, see\n[Authenticate using client libraries](https://cloud.google.com/docs/authentication/client-libraries).\n\nUse the client library\n\nSee\n[Client library examples](https://developers.google.com/maps/documentation/address-validation/client-library-examples)\nfor examples of how to send API requests using the client libraries.\n\nAdditional resources \n\nJava\n\n- [Source Code](https://github.com/googleapis/google-cloud-java/tree/main/java-maps-addressvalidation)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-java/issues)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-address-validation-api)\n\nGo\n\n- [Source Code](https://github.com/googleapis/google-cloud-go/tree/main/maps/addressvalidation/apiv1)\n- [Package Documentation](https://pkg.go.dev/cloud.google.com/go/maps@v1.21.0/addressvalidation/apiv1)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-go/issues)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-address-validation-api)\n\nNodeJS\n\n- [Source Code](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-maps-addressvalidation)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-node/issues)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-address-validation-api)\n\nPython\n\n- [Source Code](https://github.com/googleapis/google-cloud-python/tree/main/packages/google-maps-addressvalidation)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-python/issues)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-address-validation-api)\n\n.NET\n\n- [Source Code](https://github.com/googleapis/google-cloud-dotnet/tree/main/apis/Google.Maps.AddressValidation.V1)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-dotnet/issues)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-address-validation-api)"]]