Why is google autocomplete returning undefined when using getPlace() on the input address
问题 Why is google not returning an object with a formatted address when using auto-complete and how can I get a formatted address? When I log the variable from_place it returns an object like so: but when I log to_place it returns an object with formatted_address: I realise I'm using autocomplete on the first form and that's affecting it but how do i get to not affect or give me the formatted address? // declare variables var map, infoWindow, placeSearch, autocomplete; // autocomplete form var