当我尝试下载要点的路线时,会看到以下响应:
{
"error_message" : "This API project is not authorized to use this API.",
"routes" : [],
"status" : "REQUEST_DENIED"
}
这是我下载的网址;
final String url = "https://maps.googleapis.com/maps/api/directions/json?origin="+o+"&destination="+d+"&key="+key+"&mode="+mode;
API密钥之所以起作用,是因为当我对此行发表评论时,我会看到一张Google地图,并且可以绘制标记