是否可以使用 GoogleMaps iOS SDK 获取地点信息,例如 Google 地图显示?
Is it possible to get place information like Google maps show using GoogleMaps iOS SDK?
我有 GMSPlace 对象,但是在 iOS SKD 中的信息太少了,快要死了!
是否可以使用另一个库,而不仅仅是 Google 来获取有关某些地址的详细信息 - 有些像历史帮助。
例如我想获取像 google map do
这样的信息
您正在寻找的大部分信息都可以从 Google Places services called “Place Detail”. To get most of this information you need to have placeid. One way to get placeid is to do “Place Search”. Supported types is here 中提取。
在您的屏幕截图中,我还看到了对维基百科的引用。维基百科有自己的 API. Question was asked about it some time ago here.
正如@Ramis 回答的那样,您应该检查 "Google Places services"
的 "Place Detail"
有一个 public API 可以通过传递 PlaceID 获取详细信息:
https://maps.googleapis.com/maps/api/place/details/json?placeid=#{PLACE_ID_FROM_GOOGLE_PLACES}&key=#{YOUR_API_KEY}
文档在这里:Google Places API Web Service
我已经用Google Maps SDK for iOS version 1.10测试过了,Demo有一个地方列表,每个地方都有一个placeID
,你可以通过它来获取详细信息到上面的link。
但我不知道Google Places 服务是否会输出与维基百科相关的内容。
我有 GMSPlace 对象,但是在 iOS SKD 中的信息太少了,快要死了!
是否可以使用另一个库,而不仅仅是 Google 来获取有关某些地址的详细信息 - 有些像历史帮助。
例如我想获取像 google map do
这样的信息您正在寻找的大部分信息都可以从 Google Places services called “Place Detail”. To get most of this information you need to have placeid. One way to get placeid is to do “Place Search”. Supported types is here 中提取。
在您的屏幕截图中,我还看到了对维基百科的引用。维基百科有自己的 API. Question was asked about it some time ago here.
正如@Ramis 回答的那样,您应该检查 "Google Places services"
的 "Place Detail"有一个 public API 可以通过传递 PlaceID 获取详细信息:
https://maps.googleapis.com/maps/api/place/details/json?placeid=#{PLACE_ID_FROM_GOOGLE_PLACES}&key=#{YOUR_API_KEY}
文档在这里:Google Places API Web Service
我已经用Google Maps SDK for iOS version 1.10测试过了,Demo有一个地方列表,每个地方都有一个placeID
,你可以通过它来获取详细信息到上面的link。
但我不知道Google Places 服务是否会输出与维基百科相关的内容。