Sub GPS_LocationChanged (Location1 As Location)
GeoLat = Location1.Latitude
GeoLong = Location1.Longitude
'Log (GeoLat & " , " & GeoLong)
'Autodatenübernahme-----------------------------------------------------------
Dim Latitude, Longitude As Double
Latitude = GeoLat
Longitude = GeoLong
Geocoder1.GetFromLocation(Latitude, Longitude, 1, Null)
'Autodatenübernahme-----------------------------------------------------------
End Sub
Sub Geocoder1_GeocodeDone(Results() As Address, Tag As Object)
If Results.Length > 0 Then
ImageView3.Visible = False
ProgressBar2.Visible = False
lblHausnummer.Visible = True
Dim Address1 As Address
Dim i As Int
For i = 0 To Results.Length-1
Address1=Results(i)
Geostrasse = (Address1.AddressLines.Get(0))
Dim geostpr(2) As String
geostpr = Regex.Split(" ", (Address1.AddressLines.Get(1)))
Geoplz = geostpr(0)
Geoort = geostpr(1)
Next
Log(Geoplz & " " & Geoort & " - " & Geostrasse)
lblHausnummer.Text = Geoplz & " " & Geoort & CRLF & Geostrasse
Else
End If
End Sub
Sub ImageView3_Click
GPS1.Initialize("GPS") 'GPS starten
If GPS1.GPSEnabled = False Then
tt.showErrorToast("Bitte schalten Sie ihr GPS ein, sonst ist keine Automatische Suche des Standortes möglich! ")
Else
ProgressBar2.Visible = True
GPS1.Start(0, 0) 'Listen to GPS with no filters.
Geocoder1.Initialize3("Geocoder1", "de", "DE")
End If
Geoplz = ""
Geoort = ""
Geostrasse = ""
End Sub