【发布时间】:2020-12-13 18:05:55
【问题描述】:
我正在尝试获取返回的 Google Places API 的邮政编码。
我到处寻找,但似乎找不到人们如何做到这一点的有效示例。
这是我在 Postman 中运行良好的 API:
https://maps.googleapis.com/maps/api/place/autocomplete/json?input=Sydney®ion=AU&key=xxxxx&libraries=places
这是示例 JSON 响应
{
"predictions": [
{
"description": "xxxxx",
"place_id": "xxx",
"reference": "xxx",
"structured_formatting": {
"main_text": "xxx",
"main_text_matched_substrings": [
{
"length": 2,
"offset": 0
},
],
"status": "OK"
}
如何获取邮政编码详细信息?
【问题讨论】:
标签: c# json api google-maps google-maps-api-3