Google maps Google Place API未显示正确的列表

Google maps Google Place API未显示正确的列表,google-maps,google-places-api,google-places,Google Maps,Google Places Api,Google Places,我正在使用GooglePlaceAPI。我们在每个位置页面上都使用谷歌地图。我在这个位置页面上遇到的问题是,它获取的是一个对我们有用的个人谷歌地图列表,而不是整个商业列表 以下是测试页面: 以下是当前显示的列表: 这是我需要它显示的列表: 这是我页面上的代码: <iframe width="360" height="270" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/plac

我正在使用GooglePlaceAPI。我们在每个位置页面上都使用谷歌地图。我在这个位置页面上遇到的问题是,它获取的是一个对我们有用的个人谷歌地图列表,而不是整个商业列表

以下是测试页面:

以下是当前显示的列表:

这是我需要它显示的列表:

这是我页面上的代码:

<iframe
 width="360"
 height="270"
 frameborder="0" style="border:0"
 src="https://www.google.com/maps/embed/v1/place?key=AIzaSyAjae4NHf45sLSplhcsEDpFxj7P9sp8-PI
&q=BKD+LLP,lincoln+NE &zoom=15
">
</iframe>

如何让清单显示我想要的清单,而不是个人清单


谢谢

您的问题不清楚所需的行为是什么。但是,在查看您的请求之后,可以分析RESTAPI调用与文档中的不同。知道要在地图上显示该位置的位置坐标后

请尝试使用Places库的此API请求:

<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=API_KEY&libraries=places"></script>

请看这里

并使用以下示例代码:

var map;
var service;
var infowindow;

function initialize() {
  var pyrmont = new google.maps.LatLng(-33.8665433,151.1956316);

  map = new google.maps.Map(document.getElementById('map'), {
      center: pyrmont,
      zoom: 15
    });

  var request = {
    location: pyrmont,
    radius: '500',
    types: ['store']
  };

  service = new google.maps.places.PlacesService(map);
  service.nearbySearch(request, callback);
}

function callback(results, status) {
  if (status == google.maps.places.PlacesServiceStatus.OK) {
    for (var i = 0; i < results.length; i++) {
      var place = results[i];
      createMarker(results[i]);
    }
  }
}
var映射;
var服务;
var信息窗口;
函数初始化(){
var pyrmont=new google.maps.LatLng(-33.8665433151.1956316);
map=new google.maps.map(document.getElementById('map'){
中心:皮尔蒙特,
缩放:15
});
var请求={
地点:皮尔蒙特,
半径:'500',
类型:['store']
};
服务=新的google.maps.places.PlacesService(地图);
服务.nearbySearch(请求、回调);
}
函数回调(结果、状态){
if(status==google.maps.places.PlacesServiceStatus.OK){
对于(var i=0;i
感谢您的回信。我已经照你的建议做了,现在没有地图了。我通读了文档,很难理解我做错了什么。