Skip to content Skip to sidebar Skip to footer

Get The Direction Android App User Is Headed On Entering A Geofence

I'm playing around with geofences - what I'd like to do is when a geofence is fired, figure out which direction they're going. For example - let's ay I want to setup a geofence aro

Solution 1:

You better off using GPS, since for sensor the phone has to be in specific position, that is the screen has to face the opposite direction of driving. For GPS, the position of the phone does not matter.

Solution 2:

I'd use getLastLocation and then getBearing but I'd not expect great accuracy.

Post a Comment for "Get The Direction Android App User Is Headed On Entering A Geofence"