有没有在Android上地理围栏的半径有限制吗? [英] Is there a limit to the radius of a geofence in Android?

查看:274
本文介绍了有没有在Android上地理围栏的半径有限制吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发使用Android的地理栅栏API的应用程序。现在我有,当地理围栏半径大到10公里,它不工作的问题,但是当它是小到10米,然后它的作品。

I develop an application that uses the Android Geofence API. Now I have the problem that, when the radius of the geofence is as large as 10 kilometers, it does not work, but when it is as small as 10 meters, then it works.

在文档,谷歌并没有说太多关于半径:

In the documentation, Google does not say much about the radius:

的Andr​​oid样品

地理栅栏API

地理栅栏构建器API

非常感谢你!

推荐答案

半径决定了或大或小圆圈是周围的GeoPoint绘制。没有为半径的大小的最大限制,但是我发现的是,进入或退出关篱笆需要触发的情况发生,因此具有较大的(10公里),也许你不会触发进入或退出。

The radius determines how large or small the circle is that is drawn around the geopoint. There is not a maximum limit for the size of the radius, however what I have found is that the entry or exit off a fence requires triggering to happen, so with larger (10 km) maybe you're not triggering the entry or exit.

您提到10米的作品,你尝试过100? 1000?我将测试与规模日益扩大,并确保你登录你的信息,你测试,因此您可以决定是否你实际上触发了篱笆。

You mention that 10 meters works, have you tried 100? 1000? I would test with increasing size and make sure you're logging your information as you test so you can determine if you are actually triggering the fence.

这篇关于有没有在Android上地理围栏的半径有限制吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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