`;resultsList.appendChild(li);});}// 在地图上显示搜索结果function displayMap(results) {const map = new google.maps.Map(mapContainer, {center: results[0].geometry.location,zoom: 14});for (let i = 0; i < results.length; i++) {const marker = new google.maps.Marker({position: results[i].geometry.location,map: map,title: results[i].name});}}});说明:本 HTML 代码创建一个用户界面,用户可以在其中输入其位置并搜索附近的车辆维修点。JavaScript 代码使用 Google Maps API 根据用户的输入搜索和显示搜索结果。搜索结果在页面上显示为列表,并在地图上显示为标记。