gpt4 book ai didi

ios - 如何在 iOs 中获取 Google Place Details 值

转载 作者:行者123 更新时间:2023-11-28 21:34:34 25 4
gpt4 key购买 nike

我现在卡住了,我无法检索如何从 Google Place Detail API 的 json 下面获取值。

我想从“类型”节点获取所有数据。

{
"address_components" = (
{
"long_name" = "Bridge Street";
"short_name" = "Bridge St";
types = (
route
);
},
{
"long_name" = London;
"short_name" = London;
types = (
locality,
political
);
},
{
"long_name" = London;
"short_name" = London;
types = (
"postal_town"
);
},
{
"long_name" = "Greater London";
"short_name" = "Greater London";
types = (
"administrative_area_level_2",
political
);
},
{
"long_name" = "United Kingdom";
"short_name" = GB;
types = (
country,
political
);
},
{
"long_name" = "SW1A 2LW";
"short_name" = "SW1A 2LW";
types = (
"postal_code"
);
}
);
vicinity = London;
}

最佳答案

为什么不集成 Google places API 本身而不是自己解析。

检索地点简单易行

这是链接

https://developers.google.com/places/ios-api/

关于ios - 如何在 iOs 中获取 Google Place Details 值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34392439/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com