Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var place = autocomplete.getPlace();
- document.getElementById('city2').value = place.name;
- document.getElementById('cityLat').value = place.geometry.location.lat();
- document.getElementById('cityLng').value = place.geometry.location.lng();
- console.log(place);
- console.log(place.geometry.location.lat())
- console.log(place.geometry.location.lng())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement