Google地图在android上包含位置 [英] Google maps containsLocation on android

查看:83
本文介绍了Google地图在android上包含位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个应用程序,需要确定用户是否属于几个定义区域之一(基于gps位置)。

I'm writing an app that needs to determine whether a user falls within one of several defined zones (based on gps location).

Google maps javascript API有一个易于使用的功能 containsLocation()。不过,我希望能够从android上的应用程序,而不是基于Web的服务。有谁知道这样的调用是否存在于android版本的地图中?任何指针都会有帮助!

The Google maps javascript API has an easy to use function containsLocation(). However I want to be able to do this from an app on android, not a web-based service. Does anyone know if such a call exists in the android version of maps? Any pointers will be helpful!

推荐答案

稍晚,但答案如下: com.google.maps.android.PolyUtil.containsLocation()来自Google Maps Android API实用程序库。

A bit late, but here's the answer: com.google.maps.android.PolyUtil.containsLocation() from Google Maps Android API utility library.

这篇关于Google地图在android上包含位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆