腾讯地图位置接口/ws/distance/v1/matrix?mode=driving,企业账户,已分配额度,第一次就提示,此key每日调用量已达到上限
const qqmapsdk = new QQMapWX({
key: 'xxxxxxxxx',
});
return new Promise((resolve, reject) => {
qqmapsdk.calculateDistance({
mode,
from: {
latitude: fromLatitude,
longitude: fromLongitude,
},
to: [
{
latitude: toLatitude,
longitude: toLongitude,
},
],
success: function (res) {
//成功后的回调
resolve(res);
},
fail: function (error) {
reject(error);
},
});
});
因为腾讯地图免费次数已使用完了,如需继续使用,需要通过登录腾讯地图开放平台,控制台 > 配额管理 购买
