resources/assets/js/libraries/Autocomplete.js
/**
	 * Pipes out the retrieved place information.
	 *
	 * @return {Void}
	 */
Pipes out the retrieved place information.
@return {Void}
Pipes out the retrieved place information . @return { Void }
pipe()
	{
        console.log(this.autocomplete.getPlace());
		let data  = {};
		let place = this.autocomplete.getPlace();
		let googleInputs = window.GOOGLE_AUTOCOMPLETE.inputs;
        if (typeof place != 'undefined') {
		if (place.address_components !== undefined) {
			for (let i = 0; i < place.address_components.length; i++) {
				let input = place.address_components[i].types[0];
				if (googleInputs[input]) {
					data[input] = place.address_components[i][googleInputs[input]];
				}
			}
			this.place = JSON.parse(
				JSON.stringify(data)
			);
		}
        }
	}
pipe ( ) { console . log ( this . autocomplete . getPlace ( ) ) ; let data = { } ; let place = this . autocomplete . getPlace ( ) ; let googleInputs = window . GOOGLE_AUTOCOMPLETE . inputs ; if ( typeof place != 'undefined' ) { if ( place . address_components !== undefined ) { for ( let i = 0 ; i < place . address_components . length ; i ++ ) { let input = place . address_components [ i ] . types [ 0 ] ; if ( googleInputs [ input ] ) { data [ input ] = place . address_components [ i ] [ googleInputs [ input ] ] ; } } this . place = JSON . parse ( JSON . stringify ( data ) ) ; } } }
Pipes out the retrieved place information.
Pipes out the retrieved place information .