Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Nhà phát triển ở Khu vực kinh tế Châu Âu (EEA)
Hãy làm theo các bước sau để thiết lập tính năng Xác thực địa chỉ trong Maps JavaScript API.
Lấy khoá API và bật Maps JavaScript API
Trước khi sử dụng tính năng Xác thực địa chỉ trong Maps JavaScript API, bạn cần có một dự án trên Cloud có tài khoản thanh toán, đồng thời bật cả Maps JavaScript API và Address Validation API. Để tìm hiểu thêm, hãy xem bài viết Thiết lập dự án trên Google Cloud.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-17 UTC."],[],[],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| This product or feature is in Preview (pre-GA). Pre-GA products and features might have limited support, and changes to pre-GA products and features might not be compatible with other pre-GA versions. Pre-GA Offerings are covered by the [Google\n| Maps Platform Service Specific Terms](https://cloud.google.com/maps-platform/terms/maps-service-terms). For more information, see the [launch stage\n| descriptions](/maps/launch-stages).\n\n\u003cbr /\u003e\n\nFollow these steps to get set up with Address Validation in Maps JavaScript API.\n\nGet an API key and enable the Maps JavaScript API\n\nBefore using Address Validation in Maps JavaScript API, you need a Cloud\nproject with a billing account, and both the Maps JavaScript API\nand Address Validation APIenabled. To learn more, see\n[Set up your Google Cloud project](/maps/documentation/javascript/cloud-setup).\n\n[Get an API key](/maps/documentation/javascript/get-api-key)\n\n\n[Enable the Maps JavaScript API](https://console.cloud.google.com/apis/library/maps-backend.googleapis.com)\n\n\n[Enable the Address Validation API](https://console.cloud.google.com/apis/library/addressvalidation.googleapis.com)\n\nUpdate your map initialization code\n\n1. [Load the Maps JavaScript API](/maps/documentation/javascript/load-maps-js-api).\n\n2. Load the Address Validation in Maps JavaScript API library from within an\n `async` function when needed:\n\n ```javascript\n const {AddressValidation} = await google.maps.importLibrary('addressValidation');\n ```\n\nNext steps\n\n[Validate an address](/maps/documentation/javascript/address-validation/validate-address)"]]