小编pav*_* cd的帖子

{ "error_message": "您必须在 Google Cloud 项目上启用结算功能 }

尝试获取地图中两点之间的方向路线

这是我用来获取路线的网址

( https://maps.googleapis.com/maps/api/directions/json?origin=16.3064857,80.4418659&destination=27.2038,77.5011&mode=driven&key=MyApiKey )

另外,我已经在谷歌云控制台中启用了我的计费帐户,但仍然得到输出

{

  "error_message": "You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project/_/billing/enable Learn more at https://developers.google.com/maps/gmp-get-started",

  "routes": [],

  "status": "REQUEST_DENIED"


}
Run Code Online (Sandbox Code Playgroud)

android google-maps google-directions-api android-studio google-cloud-platform

5
推荐指数
1
解决办法
3万
查看次数