フレームワーク7 HTML要素:フッターに
<form data-search-list=".list-block-search" data-search-in=".item-title" class="searchbar searchbar-init">
<div class="searchbar-input">
<input id="pac-input" class="controls address-text" type="search" placeholder="add city">
</div><a href="#" class="searchbar-cancel">Cancel</a>
</form>
(含んでコールバック= initAutocomplete):あなたのJSファイル内
<script src="https://maps.googleapis.com/maps/api/js?key=[YOUR API KEY]&libraries=places&callback=initAutocomplete"></script>
(のonLoad、document.ready、など)
function initAutocomplete() {
// Create the search box and link it to the UI element.
var input = document.getElementById('pac-input');
var searchBox = new google.maps.places.SearchBox(input);
// Listen for the event fired when the user selects a prediction and retrieve
// more details for that place.
searchBox.addListener('places_changed', function() {
var places = searchBox.getPlaces();
************ YOUR LOGIC WITH THE SELECTED PLACES *********
});
}