我正在使用地图矩阵API查找英格兰各个位置之间的公交距离。
https://maps.googleapis.com/maps/api/distancematrix/json?
units=metric
&key=YOUR_KEY_HERE
&origins=SE108aJ
&destinations=SE164UN
&mode=transit
&arrival_time=1568618400
®ion=UK
它返回:
{
"destination_addresses" : [ "London SE16 4UN,UK" ],"origin_addresses" : [ "Dartmouth Hill,Blackheath,London SE10 8AJ,"rows" : [
{
"elements" : [
{
"status" : "ZERO_RESULTS"
}
]
}
],"status" : "OK"
}
对Google地图的相同请求有效:
https://www.google.com/maps/dir/SE10+8AJ,+London/London+SE16+4UN
所以我有点困惑为什么API调用没有