android - google-maps-services 和 play-services-maps 之间的区别

标签 android google-maps google-play-services google-maps-android-api-2

我在 Android Studio 的 Add a library in Module settings 中找到了两个库。 这两个库有什么区别:

com.google.maps:google-maps-services

com.google.android.gms:play-services-maps

这些用在什么地方?

最佳答案

1. com.google.maps:google-maps-services

这是 Google map 网络服务,包含用于需要地理数据(例如方向或距离)的工具。它在 documentation 中定义如下:

The Google Maps web services are a collection of HTTP interfaces to Google services providing geographic data for your maps applications.

2. com.google.android.gms:play-services-maps

另一方面,这个库允许与物理 map 进行交互,包括事件监听、相机角度和位置、 map 类型等。您可以引用documentation其特定功能。

我希望这能回答您的问题!

关于android - google-maps-services 和 play-services-maps 之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35824284/

相关文章:

android - 单击靠近其边缘时,dialogFragment 不会关闭

android - 使用 .bp 为 android 创建未剥离的可执行文件

android - 如何在 Android 中加载大量位图而不导致应用程序崩溃

android - map 上的规则形状多边形Android map 点击

android - 处理 Google Play 服务更新消息

android - TileProvider 方法 getTile - 需要将 x 和 y 转换为 lat/long

google-maps - 如何在Dart中的Uri查询字符串中重复键

javascript - Jquery使用动态ID计算总和

android - 如何检查 Google Play Services API 的可用性? (特别是 GCM API)

android - NoClassDefFoundError : com. google.firebase.perf.internal.RemoteConfigManager