0

The GPS in phones is known to be not so accurate. 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. Is there any way to achieve this?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62

1 Answers1

0

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. 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. If you throw in some buildings and other structures that can quite easily increase this margin of error.

Community
  • 1
  • 1
npinti
  • 51,780
  • 5
  • 72
  • 96