When the position change, an event sub is fired and the parameters of this event Sub contain the new location data.
B4X:
Sub Location_LocationChanged (Longitude As Double, Latitude As Double, Altitude As Double, Accuracy As Float, Bearing As Float, Provider As String, Speed As Float, Time As Long)
End Sub