-2

i have my lat long and i have company lat long with company radius i have to calculate that my lat long is exist in company radius then we have to return true else we have to return false

A - Lat, B - Long, R - Radius

if distance(A,B) <= R then user is within radius

please suggest me how i can get this .

Phantômaxx
  • 37,352
  • 21
  • 80
  • 110
Anil Thakur
  • 113
  • 1
  • 10

2 Answers2

0

Android provided GEOFENCE Monitoring you need to be read this documention its work for me

https://developer.android.com/training/location/geofencing.html#java

Shamsher Singh
  • 305
  • 2
  • 8
-1

I think you can use Geometry for this refer to this video.

marc_s
  • 704,970
  • 168
  • 1,303
  • 1,425