您应该注意以下几点:
在您的示例中,它似乎是 Google 数据库中的错误数据。
让我们看看对您的请求的响应
https://maps.googleapis.com/maps/api/geocode/json?address=00000&key=YOUR_API_KEY
正如您在响应中看到的,地点 ID 是“ChIJgyA2iZU0s1IReyHBw0yPjZg”。现在检查此地点 ID 的地点详细信息请求的输出
https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJgyA2iZU0s1IReyHBw0yPjZg&key=YOUR_API_KEY
响应将包含以下内容
{
....
id: "3fff72184719b7835304f285f40e677e9914933e",
international_phone_number: "+1 763-300-8722",
name: "00000",
place_id: "ChIJgyA2iZU0s1IReyHBw0yPjZg",
formatted_address: "6009 Wayzata Blvd Suite #108, St Louis Park, MN 55416, USA",
types: [
"lodging",
"point_of_interest",
"establishment"
],
.....
}
请注意,该商家在 Google 数据库中的名称为“00000”,因此 Geocoding API 正在按预期工作,但显然这里存在数据问题。
您可以使用此链接查看该地点并向 Google 报告不良数据
https://maps.google.com/?cid=10992599825345749371
我希望这会有所帮助!