File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
samples/address-validation Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 55 */
66
77// [START maps_address_validation]
8- // --- DOM Refs ---
8+ // DOM Refs
99const addressForm = document . getElementById ( 'address-form' ) ;
1010const validateButton = document . getElementById ( 'validate-button' ) ;
1111const clearFormButton = document . getElementById ( 'clear-form-button' ) ;
1212const resultDisplay = document . getElementById ( 'result-display' ) ;
1313const loadingText = document . getElementById ( 'loading-text' ) ;
14- // --- Input field refs ---
14+ // Input field refs
1515const streetAddress1Input = document . getElementById ( 'street-address-1' ) as HTMLInputElement ;
1616const streetAddress2Input = document . getElementById ( 'street-address-2' ) as HTMLInputElement ;
1717const cityInput = document . getElementById ( 'city' ) as HTMLInputElement ;
@@ -20,7 +20,7 @@ const zipCodeInput = document.getElementById('zip-code') as HTMLInputElement;
2020const regionSelect = document . getElementById ( 'region-select' ) as HTMLSelectElement ;
2121const exampleSelect = document . getElementById ( 'example-select' ) as HTMLSelectElement ;
2222
23- // --- Core Initialization ---
23+ // Core Initialization
2424async function init ( ) {
2525 // Load the Address Validation library
2626 await google . maps . importLibrary ( 'addressValidation' ) ;
@@ -31,7 +31,7 @@ async function init() {
3131}
3232
3333// [START maps_address_validation_form_handler]
34- // --- Validation Handler ---
34+ // Validation Handler
3535async function handleValidationSubmit ( event ) {
3636 event . preventDefault ( ) ; // Prevent default form submission
3737 resultDisplay ! . textContent = 'Validating...' ; // Clear previous results
You can’t perform that action at this time.
0 commit comments