wx.request({
url: 'https://apis.map.qq.com/ws/place/v1/search?boundary=region(北京,0)',
data: {
page_size: 20,
page_index: 1,
keyword: page.data.station,
我搜的地铁名是落在确定的一个城市的,我请求的时候在url: 'https://apis.map.qq.com/ws/place/v1/search?boundary=region(city,0)',这个city不能切换城市。请赐教。
'https://apis.map.qq.com/ws/place/v1/search?boundary=region(' + city + ',0)'
谢谢!
wx.request({
url: 'https://apis.map.qq.com/ws/place/v1/search?&boundary=nearby(' + app.globalData.latitude + ',' + app.globalData.longotude + ',1000)',
这样为什么不行?提升boundary参数格式错误。
nearby(40.040589,116.273543,1000)
URL参数不能有空格