简体   繁体   English

Android GPS位置

[英]Android GPS position

The GPS in phones is known to be not so accurate. 众所周知,手机中的GPS不太准确。 But what I want to do is this. 但是我想做的就是这个。 When the user reaches a particular spot he saves it.When he comes again near that spot(5 metres range) the application should do something. 当用户到达特定地点时,他将其保存。当他再次到达该地点(5米范围)时,应用程序应执行某项操作。 Is there any way to achieve this? 有什么办法可以做到这一点?

As pointed out by David Schwartz what you ask is a little bit vague, however, assuming that you want to do something yourself, you might find this SO question useful. 正如David Schwartz所指出的那样,您的要求有点含糊,但是,假设您想自己做某事,那么您可能会发现这个 SO问题很有用。 In this question, they provide various methods to see if a point is within a circle. 在这个问题上,他们提供了各种方法来查看点是否在圆内。

I recommend however, that you increase the radius you would like to use. 但是,我建议您增加要使用的半径。 GPS varies between 5m to 50m, and that is usually in optimal conditions. GPS在5m至50m之间变化,通常处于最佳状态。 If you throw in some buildings and other structures that can quite easily increase this margin of error. 如果您投入一些建筑物和其他结构,可能会很容易增加此误差范围。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM