gpt4 book ai didi

ios - 适用于 iOS 的 Places SDK 与限制选项下的 Places API 之间有什么区别?

转载 作者:行者123 更新时间:2023-11-29 05:14:31 26 4
gpt4 key购买 nike

限制选项下的 Places SDK for iOS 和 Places API 有什么区别?

最佳答案

它们几乎相同,但是两个选项中都不存在某些功能。

以下是他们各自的概述:

PLACES SDK(引用:https://developers.google.com/places/ios-sdk/intro)

Help your customers explore where they are and what’s around them:

  • Current Place returns a list of places where the user’s device is last known to be located along with an indication of the relative likelihood for each place.
  • Place Autocomplete automatically fills in the name and/or address of a place as users type.
  • Place Photos returns high-quality images of a place.
  • Place Details return and display more detailed information about a place.
  • Place IDs stores the unique ID for one or more places for retrieval of place information on demand.

Other highlights of the API include:

  • Accurate place detection at low power with WiFi scan.
  • On-device caching: Most requests to the Places SDK for iOS may involve a round trip to a Google server, but you can also cache data locally for 30 days.

PLACES API(引用:https://cloud.google.com/maps-platform/places/)

  • Place Details

    • Provide names, addresses, and other rich details like ratings, reviews, or contact information for over 150 million places.
  • Current Place

    • Identify a place based on real-time signals like time of day or user location.
  • Find Place

    • Turn a phone number, address, or name into a place.
  • Autocomplete

    • Automatically return location suggestions while users type.
  • Geocoding

    • Convert addresses to geographic coordinates, or the reverse.
  • Geolocation

    • Return the precise location of a device based on Wi-Fi or cell towers.
  • Time Zone

    • Return a time zone for any location

为了解释一下,您通常希望将 SDK 用于 native 控件和功能,例如自动完成(它使用 UITableView)、低功耗检测、设备上缓存。

同时,您通常希望将地方 API 用于类似网络的功能,例如地理编码、反向地理编码、方向、距离矩阵等等。

关于ios - 适用于 iOS 的 Places SDK 与限制选项下的 Places API 之间有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59315835/

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