Improving accuracy for geofence