Address Validation API の概要
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
はじめに
Address Validation API は、アドレスを受け入れるサービスです。住所の構成要素を識別して検証します。また、郵送用の住所を標準化し、その住所に最適な既知の緯度と経度の座標を見つけます。必要に応じて、米国とプエルトリコの住所に対して
Coding Accuracy Support System(CASS™)を有効にできます。
Address Validation API を使用する理由
Address Validation API を使用すると、配達の予測可能性を高め、配達の失敗を減らすことで、カスタマー エクスペリエンスを向上させることができます。これは、不正なアドレスをキャッチし、アドレスの特性をより適切に認識することで実現します。
個々のアドレス コンポーネントを検証する必要がない場合は、Geocoding API の方がニーズに合っている可能性があります。Geocoding API は、住所を緯度と経度の座標に変換します。Address Validation API は、住所の正確性を検証します。詳細な比較については、アーキテクチャ センターの Google Maps Platform を使用して位置情報の検証機能を構築するをご覧ください。
Address Validation API でできること
inputデモを試す
Address Validation API を使用すると、住所が実際の場所を指しているかどうかを判断できます。住所が実際の場所を参照していない場合、API は誤りの可能性があるコンポーネントを特定できます。このコンポーネントをお客様に提示して、修正を依頼できます。API を使用したワークフローの例を次に示します。
顧客が住所を入力する - 次の画像は、顧客が住所を入力できる基本的なフォームを示しています。このフォームは、購入手続きフローの一部として表示される可能性があります。
アプリが API に住所を送信する - アプリケーションがこの住所を Address Validation API の入力として渡します。

API が住所を検証して標準化する - Address Validation API は、レスポンスで、API が判断した完全な住所を返すか、情報が欠落している場所を示します。
お客様が住所を確認または修正する - API の戻り値に応じて、お客様に次のプロンプトを表示できます。
A. 推奨される住所を確認します。B. 不足している情報を入力します。
C. 住所を修正します。


Address Validation API の仕組み
住所確認は、JSON 本文の形式で住所を含む POST リクエストを受け入れます。住所を個々のコンポーネントに分割し、次の処理を試みます。
- 修正 - 区画データ(該当する場合)などのコンポーネント レベルの検証チェックを提供します。
- Completes - 欠落している住所コンポーネントや正しくない住所コンポーネントの推測を試みます。
- 形式 - 住所の構成要素の形式をクリーンアップして標準化します。
リソース
次の表に、Address Validation API で使用可能なリソースと、返されるデータの概要を示します。詳細については、住所確認 API リファレンスをご覧ください。
データ リソース |
返されたデータ |
JSON 形式のアドレス コンポーネント。
住所を検証するをご覧ください。
|
完全で有効な住所(可能な場合)。
住所の各構成要素の検証ステータス。
住所で利用できる場合:
- ジオコード
- 住所の精度
- 郵便サービスデータ(利用可能な場合)。
検証レスポンスについてをご覧ください。
|
Address Validation API の使用方法
1 |
デモを試す |
デモを試す
さまざまな住所フォーム(正しいものと正しくないもの)を試すことができます。
このデモは、サービスからの戻り値と JSON 形式の API レスポンスの両方を調べるのに役立ちます。 |
2 |
カバレッジを確認する |
適用範囲の詳細で、Address Validation API がサポートしている国と地域を確認します。 |
3 |
セットアップする |
Google Cloud プロジェクトを設定するから始めて、以降の手順を完了します。 |
4 |
住所確認をリクエストする |
まず基本的な住所から始め、精度を高めるために CASS を有効にできます(米国とプエルトリコの住所のみ)。住所の検証をリクエストするをご覧ください。 |
5 |
回答を処理する |
Address Validation API のレスポンスには 2 つのプロパティがあり、それぞれ異なる方法で使用します。基本的なレスポンスについてをご覧ください。 |
6 |
検証の精度を向上させる |
Address Validation API のレスポンスに関するフィードバックを提供することで、住所の精度を高めることができます。更新されたアドレスを処理するをご覧ください。 |
利用可能なクライアント ライブラリ
Address Validation API で使用可能なクライアント ライブラリの一覧については、クライアント ライブラリをご覧ください。
CASS™ について
United States Postal Service®(USPS®)1 は、住所検証サービスのプロバイダを支援し認定するために、Coding Accuracy Support System(CASS™)を運営しています。Address Validation API などの CASS Certified™ サービスは、住所に不足している情報を補完し、標準化して更新し、最新かつ最も正確な住所を提供できることが確認されています。
CASS はデフォルトでは有効になっておらず、「US」と「PR」の地域でのみサポートされています。CASS を有効にするには、検証リクエストの一部として enableUspsCass
を true
に設定します。詳しくは、アドレスを検証するをご覧ください。
USPS サービスの使用の一環として、USPS は人工的に作成された住所のリクエストを評価します。USPS が入力された住所を人工的に作成されたものと判断した場合、Google はお客様の住所の検証を停止し、お客様の連絡先情報(名前と住所)、関連する入力住所、集計された使用状況データを USPS に報告する必要があります。API を使用すると、これらのサービス固有の規約に同意したものとみなされます。
次のステップ
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-31 UTC。
[null,null,["最終更新日 2025-08-31 UTC。"],[[["\u003cp\u003eThe Address Validation API validates, standardizes, and geocodes addresses, improving delivery predictability and customer experience.\u003c/p\u003e\n"],["\u003cp\u003eIt identifies address components, validates them for correctness, and provides suggestions for corrections, unlike the Geocoding API, which only converts addresses to coordinates.\u003c/p\u003e\n"],["\u003cp\u003eAddresses are processed by correcting, completing, and formatting components, with CASS™ support for US and Puerto Rico addresses for enhanced accuracy (requires enabling).\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can access resources like a demo, coverage details, setup instructions, validation requests, response understanding, and client libraries to utilize the API effectively.\u003c/p\u003e\n"],["\u003cp\u003eUSPS evaluates requests for artificially created addresses, and Google is obligated to stop validation and report relevant information to USPS in such cases.\u003c/p\u003e\n"]]],["The Address Validation API validates and standardizes addresses, identifying components and correcting errors. It can infer missing information, and determine if an address is a real place. The API accepts an address, validates it, and returns a complete address or flags missing information. Users can confirm, correct, or provide missing details. For US and Puerto Rico addresses, CASS can be enabled for enhanced accuracy. The Geocoding API may be preferred if address component validation is not needed.\n"],null,["**European Economic Area (EEA) developers** If your billing address is in the European Economic Area, effective on 8 July 2025, the [Google Maps Platform EEA Terms of Service](https://cloud.google.com/terms/maps-platform/eea) will apply to your use of the Services. Functionality varies by region. [Learn more](/maps/comms/eea/faq). \n\nIntroduction The Address Validation API is a service that accepts an address. It identifies address components and validates them. It also standardizes the address for mailing and finds the best known latitude/longitude coordinates for it. Optionally, for addresses in the United States and Puerto Rico, you can enable the [Coding Accuracy Support System (CASS™)](https://developers.google.com/maps/documentation/address-validation/overview#about-cass).\n\nWhy use the Address Validation API\n\nWith the Address Validation API, you can improve delivery predictability and reduce\ndelivery failures, thereby providing improved customer experience. You do this\nby catching bad addresses and obtaining better awareness of address\ncharacteristics.\n\nThe Geocoding API might be a better match for your needs if you\ndon't need to validate the individual address components. The Geocoding API\n**converts** addresses into latitude and longitude coordinates. The\nAddress Validation API validates addresses for **correctness** . See\n[Building location validation capability using Google Maps Platform](https://developers.google.com/maps/architecture/geocoding-address-validation)\nin the Architecture Center for a detailed comparison.\n\nWhat you can do with the Address Validation API\n\n[inputTry the demo](/maps/documentation/address-validation/demo) [](/maps/documentation/address-validation/demo)\n\nWith the Address Validation API, you can determine if an address\nrefers to a real place. If the address does not refer to a real\nplace, the API can identify possibly wrong components that you can present to\nyour customers to correct. Here is a sample workflow using the API:\n\n1. **Customer enters an address** -- The following image shows a basic form\n that allows a customer to enter an address, possibly as part of a checkout\n flow.\n\n2. **App sends the address to the API** -- The application passes this address\n as the input to the Address Validation API.\n\n3. **API validates and standardizes the address** -- In its response, the\n Address Validation API returns the complete address as determined by the API, or\n indicates where information is missing.\n\n4. **Customer confirms or corrects the address** -- Depending on\n what the API returns, you can provide the following prompts to the customer:\n **A.** Confirm the recommended address. **B.** Provide missing information.\n **C.** Fix the address.\n\nHow the Address Validation API works\n\nThe address validation accepts a POST request with the address in the form\nof a JSON body. It separates the address into its individual components, and\nthen attempts the following:\n\n- **Corrects**---Provides component-level validation checks, including sub-premises where available.\n- **Completes**---Attempts to infer missing or incorrect address components.\n- **Formats**---Cleans up and standardizes the format for address components.\n\nResources\n\nThe following table summarizes the resources available through the\nAddress Validation API along with the data it returns. For specific details, see the\n[Address Validation API reference](./reference/rest).\n\n\u003cbr /\u003e\n\n| Data resources | Data returned |\n|-------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Address components in JSON format.** See [Validate an address](/maps/documentation/address-validation/requests-validate-address). | Complete, validated address (if possible). Validation status of each address component. Where available for an address: - Geocode - Address precision - Postal services data, where available. See [Understand the validation response](/maps/documentation/address-validation/understand-response). |\n\n\u003cbr /\u003e\n\nHow to use the Address Validation API\n\n|---|-----------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| 1 | **Try the demo** | [Explore the demo](/maps/documentation/address-validation/demo) with a variety of address forms, both correct and incorrect. The demo provides a useful way to explore both the return values from the service, as well as the JSON formatted API response. |\n| 2 | **Check coverage** | Review [coverage details](/maps/documentation/address-validation/coverage) to see which countries and regions the Address Validation API supports. |\n| 3 | **Get set up** | Start with [Set up your Google Cloud project](/maps/documentation/address-validation/cloud-setup) and complete the instructions that follow. |\n| 4 | **Request an address validation** | Start with a basic address and then, for additional accuracy, you can enable CASS (for US and PR addresses only). See [Request an address validation.](/maps/documentation/address-validation/requests-validate-address) |\n| 5 | **Process a response** | The Address Validation API response provides two properties, each of which you use in different ways. See [Understand a basic response.](/maps/documentation/address-validation/understand-response) |\n| 6 | **Improve validation accuracy** | You can help improve address accuracy by providing feedback on Address Validation API responses. See [Handle updated addresses](/maps/documentation/address-validation/handle-updated-address). |\n\nAvailable client libraries\n\nFor a list of the available client libraries for Address Validation API,\nsee\n[Client libraries](/maps/documentation/address-validation/client_libraries).\n\nAbout CASS™\n\nThe United States Postal Service® (USPS®)^[1](#fn1)^ maintains the\n[Coding Accuracy Support System (CASS™)](https://postalpro.usps.com/certifications/cass)\nto support and certify address validation providers. A CASS Certified™ service,\nsuch as the Address Validation API, has been confirmed for its\nability to fill in information missing from an address, standardize it, and\nupdate it to give you the most current and most accurate address.\n\nCASS is not enabled by default and is only supported for the \"US\" and \"PR\"\nregions. To enable CASS, set `enableUspsCass` to `true` as part of a validation\nrequest. For more information, see\n[Validate an address](/maps/documentation/address-validation/requests-validate-address#enable-cass).\n\nAs part of our use of USPS services, USPS evaluates requests for artificially\ncreated addresses. If USPS identifies an input address as being artificially\ncreated, Google is required to stop validating addresses for the customer and\nmust report the customer's contact information (name and address), the relevant\ninput address, and aggregated usage data to USPS. By using the API you consent\nto these\n[Service Specific Terms](https://cloud.google.com/maps-platform/terms/maps-service-terms).\n\nWhat's next\n\n- **Try the demo** : Go to [Demo](/maps/documentation/address-validation/demo)\n- **Review coverage areas** : Go to [Country and region coverage details](/maps/documentation/address-validation/coverage)\n- **Try your first validation request** : Go to [Send an address validation request](/maps/documentation/address-validation/requests-validate-address)\n- **Process addresses at high volume** : Go to [Use Address Validation API to process addresses at high volume](/maps/architecture/high-volume-address-validation)\n\n*** ** * ** ***\n\n1. Google Maps Platform is a non-exclusive Licensee of the United States\n Postal Service®. The following trademark(s) are owned by the United States\n Postal Service® and used with permission: United States Postal Service®,\n CASS™, CASS Certified™. [↩](#fnref1)"]]