Address Validation API'ye genel bakış
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Avrupa Ekonomik Alanı (AEA) geliştiricileri
Giriş
Address Validation API, adres kabul eden bir hizmettir.
Adres bileşenlerini tanımlar ve doğrular. Ayrıca posta adresini standartlaştırır ve bu adres için bilinen en iyi enlem/boylam koordinatlarını bulur.
İsteğe bağlı olarak, ABD ve Porto Riko'daki adresler için
Coding Accuracy Support System (CASS™)'i etkinleştirebilirsiniz.
Address Validation API'yi neden kullanmalısınız?
Adres Doğrulama API'si ile teslimat öngörülebilirliğini artırabilir ve teslimat hatalarını azaltarak daha iyi bir müşteri deneyimi sunabilirsiniz. Bunu, kötü adresleri yakalayarak ve adres özellikleriyle ilgili daha iyi bilgi edinerek yapabilirsiniz.
Tek tek adres bileşenlerini doğrulamanız gerekmiyorsa Geocoding API ihtiyaçlarınız için daha uygun olabilir. Geocoding API, adresleri enlem ve boylam koordinatlarına dönüştürür. Address Validation API, adreslerin doğruluğunu doğrular. Ayrıntılı karşılaştırma için Mimari Merkezi'ndeki Google Haritalar Platformu'nu kullanarak konum doğrulama özelliği oluşturma başlıklı makaleye bakın.
Address Validation API ile yapabilecekleriniz
inputDemoyu deneyin
Adres Doğrulama API'si ile bir adresin gerçek bir yeri ifade edip etmediğini belirleyebilirsiniz. Adres gerçek bir yeri ifade etmiyorsa API, müşterilerinize sunarak düzeltmelerini isteyebileceğiniz muhtemelen yanlış bileşenleri belirleyebilir. API'yi kullanan örnek bir iş akışını aşağıda bulabilirsiniz:
Müşteri adres girer: Aşağıdaki resimde, müşterinin adres girmesine olanak tanıyan temel bir form gösterilmektedir. Bu form, ödeme akışının bir parçası olabilir.
Uygulama, adresi API'ye gönderir: Uygulama, bu adresi Address Validation API'ye giriş olarak iletir.

API, adresi doğrular ve standartlaştırır: Adres Doğrulama API'si, yanıtında API tarafından belirlenen tam adresi döndürür veya bilgilerin nerede eksik olduğunu belirtir.
Müşteri adresi onaylar veya düzeltir: API'nin döndürdüğüne bağlı olarak müşteriye aşağıdaki istemleri sağlayabilirsiniz:
A. Önerilen adresi onaylayın. B. Eksik bilgileri sağlayın.
C. Adresi düzeltin.


Address Validation API'nin işleyiş şekli
Adres doğrulama, JSON gövdesi biçiminde adres içeren bir POST isteğini kabul eder. Adresi ayrı bileşenlerine ayırır ve ardından şunları dener:
- Düzeltir: Mümkün olan yerlerde alt tesisler de dahil olmak üzere bileşen düzeyinde doğrulama kontrolleri sağlar.
- Tamamlar: Eksik veya yanlış adres bileşenlerini tahmin etmeye çalışır.
- Biçimler: Adres bileşenlerinin biçimini temizler ve standartlaştırır.
Kaynaklar
Aşağıdaki tabloda, Adres Doğrulama API'si aracılığıyla kullanılabilen kaynaklar ve döndürdüğü veriler özetlenmektedir. Ayrıntılı bilgi için Address Validation API referansına bakın.
Veri kaynakları |
Döndürülen veriler |
JSON biçiminde adres bileşenleri.
Adres doğrulama başlıklı makaleye bakın.
|
Mümkünse eksiksiz ve doğrulanmış adres.
Her adres bileşeninin doğrulama durumu.
Bir adres için kullanılabilirse:
- Coğrafi kod
- Adres hassasiyeti
- Posta hizmetleri verileri (varsa)
Doğrulama yanıtını anlama başlıklı makaleyi inceleyin.
|
Address Validation API'yi kullanma
1 |
Demoyu deneyin |
Hem doğru hem de yanlış çeşitli adres formlarıyla demoyu inceleyin.
Demo, hem hizmetten döndürülen değerleri hem de JSON biçimli API yanıtını keşfetmek için faydalı bir yol sunar. |
2 |
Kapsamı kontrol etme |
Adres Doğrulama API'sinin hangi ülke ve bölgeleri desteklediğini görmek için kapsam ayrıntılarını inceleyin. |
3 |
Kurulum |
Google Cloud projenizi ayarlayarak başlayın ve sonraki talimatları uygulayın. |
4 |
Adres doğrulaması isteğinde bulunma |
Temel bir adresle başlayın. Daha sonra doğruluğu artırmak için
CASS'i etkinleştirebilirsiniz (yalnızca ABD ve Porto Riko adresleri için). Adres doğrulama isteğinde bulunma başlıklı makaleyi inceleyin. |
5 |
Yanıtı işleme |
Adres Doğrulama API'si yanıtı, her biri farklı şekillerde kullandığınız iki özellik sağlar.
Temel yanıtları anlama başlıklı makaleyi inceleyin. |
6 |
Doğrulama doğruluğunu artırma |
Adres Doğrulama API'si yanıtları hakkında geri bildirimde bulunarak adres doğruluğunu artırmamıza yardımcı olabilirsiniz. Güncellenen adresleri işleme başlıklı makaleyi inceleyin. |
Kullanılabilir istemci kitaplıkları
Address Validation API için kullanılabilen istemci kitaplıklarının listesini görmek istiyorsanız İstemci kitaplıkları bölümüne bakın.
CASS™ hakkında
Amerika Birleşik Devletleri Posta Servisi® (USPS®)1, adres doğrulama sağlayıcılarını desteklemek ve sertifikalandırmak için Kodlama Doğruluğu Destek Sistemi'ni (CASS™) kullanır. Adres Doğrulama API'si gibi CASS Certified™ hizmetleri, bir adreste eksik olan bilgileri doldurma, adresi standartlaştırma ve en güncel ve doğru adresi sunmak için adresi güncelleme becerisi açısından onaylanmıştır.
CASS varsayılan olarak etkin değildir ve yalnızca "ABD" ve "PR" bölgelerinde desteklenir. CASS'i etkinleştirmek için doğrulama isteğinin bir parçası olarak enableUspsCass
değerini true
olarak ayarlayın. Daha fazla bilgi için Adres doğrulama başlıklı makaleyi inceleyin.
USPS hizmetlerini kullanmamız kapsamında USPS, yapay olarak oluşturulmuş adreslerle ilgili talepleri değerlendirir. USPS, girilen bir adresin yapay olarak oluşturulduğunu tespit ederse Google'ın müşteri için adres doğrulamayı durdurması ve müşterinin iletişim bilgilerini (ad ve adres), ilgili giriş adresini ve toplu kullanım verilerini USPS'ye bildirmesi gerekir. API'yi kullanarak bu Hizmete Özgü Şartlar'ı kabul etmiş olursunuz.
Sırada ne var?
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-08-31 UTC.
[null,null,["Son güncelleme tarihi: 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)"]]