我一直注意到谷歌地理编码api在某些时候会回复某些城市的"未知错误".
现在的例子:
curl 'https://maps.googleapis.com/maps/api/geocode/json?address=Kansas%20City,%20KS,%20USA'
收益:
{
"results" : [],
"status" : "UNKNOWN_ERROR"
}
也:
curl 'https://maps.googleapis.com/maps/api/geocode/json?address=Oklahoma%20City,%20OK'
收益:
{
"results" : [],
"status" : "UNKNOWN_ERROR"
}
而
curl 'https://maps.googleapis.com/maps/api/geocode/json?address=New%20York%20%City,%20NY'
正常工作.
前几天我也遇到了这个问题,但似乎已经解决了,现在又回来了.