https://lbs.qq.com/webservice_v1/guide-suggestion.html

1.  通过jsonp方式使用

$.ajax({
    type: "get",
    url:
        "https://apis.map.qq.com/ws/place/v1/suggestion?keyword=" + that.text +
        "&region=" + that.position + 
"&location=" + (that.lat + "," + that.lng) + "&get_subpois=1&key=你的key&output=jsonp" dataType: "jsonp", success: res => { //返回搜索结果 console.log(res); } });

2.  如果遇到报错"

使用腾讯地图WebService API进行地点搜索

 

相关文章:

  • 2022-12-23
  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2022-12-23
相关资源
相似解决方案