Sub GPS_LocationChanged (Location1 As Location)
'Log("DANS STARTER LocationChanged")
Dim locations As LatLng
Dim sbb As StringBuilder
locations.Initialize(Location1.Latitude,Location1.Longitude)
listLocations.Add(locations)
LatitudeReal = Location1.Latitude
LongitudeReal = Location1.Longitude
If cpt == 0 Then
StartLocation.Initialize2(LatitudeReal, LongitudeReal)
End If
EndLocation.Initialize2(LatitudeReal, LongitudeReal)
Distance = Distance + StartLocation.DistanceTo(EndLocation)
LatitudeStart = LatitudeReal
LongitudeEnd = LongitudeReal
StartLocation.Initialize2(LatitudeStart, LongitudeEnd)
sbb.Initialize
sbb.Append("timestamp," & Chr(34) & (Round(DateTime.Now/1000)-631065600) & Chr(34) & ",s,altitude,"&Chr(34)&(Location1.Altitude)&Chr(34)&",m,distance,"&Chr(34) & Distance & Chr(34) & ",m,speed," & Chr(34) & $"$1.2{Location1.Speed}"$ & Chr(34) & ",m/s,position_lat,"& Chr(34) & (Round(Location1.Latitude*11930464.7111)) & Chr(34) & ",position_long,"&Chr(34) & (Round(Location1.Longitude*11930464.7111))&Chr(34))
List1.Add(sbb.ToString)
cpt = cpt + 1
CallSub3(page_activite, "GPS_LocationChanged", Location1, Distance)
End Sub