[英]Google Map Direction request denied
DIRECTIONS_ROUTE: REQUEST_DENIED: There was an issue performing a Directions request.", stack: "Error: DIRECTIONS_ROUTE: REQUEST_DENIED: There was…Bxn-37h3KP_vNzLT1V7Zmb13riuqOLA&token=122369:1:28", name: "MapsRequestError", endpoint: "DIRECTIONS_ROUTE", code: "REQUEST_DENIED"} name: "MapsRequestError" endpoint: "DIRECTIONS_ROUTE" code: "REQUEST_DENIED" DIRECTIONS_ROUTE:REQUEST_DENIED:执行路线请求时出现问题。”,堆栈:“错误:DIRECTIONS_ROUTE:REQUEST_DENIED:有...Bxn-37h3KP_vNzLT1V7Zmb13riuqOLA&token=122369:1:28”,名称:“MapsRequestError”,端点:“DIRECTIONS_ROUTE”,代码:“REQUEST_DENIED”} 名称:“MapsRequestError”端点:“DIRECTIONS_ROUTE” 代码:“REQUEST_DENIED”
From 16th July, 2018 onwards:从 2018 年 7 月 16 日起:
Direction API, Street View, Geolocation are in premier basis.
You need to subscribe it by paying on monthly basis.您需要按月付费订阅它。
For display route in map we need to enable Directions API.对于 map 中的显示路线,我们需要启用方向 API。
1.Go to the Google Cloud Platform Console. 1.Go 到谷歌云平台控制台。
2.Click the Select a project button, then select the same project you set up for the Maps JavaScript API and click Open. 2.Click the Select a project button, then select the same project you set up for the Maps JavaScript API and click Open.
3.From the list of APIs on the Dashboard, look for Directions API. 3.从仪表板上的 API 列表中,查找 Directions API。
4.If you see the API in the list, you're all set. 4.如果您在列表中看到 API,则一切就绪。 If the API is not listed, enable it:
如果 API 未列出,请启用它:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.