1 2function autocompleteFiller(googleInformations, zipCodeInput, cityInput, searchDepartmentInput, regionInput, countryInput, addressInput){ 3 4 var place = googleInformations.getPlace(); 5 var addressComponents = place.address_components 6 var addressComponent = null 7 let numberStreet = []; 8 let address = ''; 9 for (var i in addressComponents) { 10 addressComponent = addressComponents[i] 11 if (addressComponent.types.indexOf('locality') > -1){ 12 numberStreet[i] = addressComponent.long_name; 13 address = numberStreet.join(' ') 14 } 15 if (addressComponent.types.indexOf('postal_code') > -1) zipCodeInput.value = 16 addressComponent.long_name; 17 if (addressComponent.types.indexOf('locality') > -1) cityInput.value = 18 addressComponent.long_name; 19 if (addressComponent.types.indexOf('administrative_area_level_2') > -1) searchDepartmentInput.value = addressComponent.long_name; 20 if (addressComponent.types.indexOf('administrative_area_level_1') > -1) regionInput.value = addressComponent.long_name; 21 if (addressComponent.types.indexOf('country') > -1) countryInput.value = 22 addressComponent.long_name; 23 } 24 25 if(address !== '') 26 addressInput.value = address 27}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.