Hello,
i have a problem with the Geocoder Library. I use the Version 2.01. I want to convert latitude and longtitude to a street name with number and the country. The compiler tells me:
Parsing code. 0.01
Compiling code. Error
Error compiling program.
Error description: Cannot assign void value.
Occurred on line: 28
Results = Geocoder1.GetFromLocation(42.53252, 11.49774, 5, Null)
Word: )
hier is my code:
i have a problem with the Geocoder Library. I use the Version 2.01. I want to convert latitude and longtitude to a street name with number and the country. The compiler tells me:
Parsing code. 0.01
Compiling code. Error
Error compiling program.
Error description: Cannot assign void value.
Occurred on line: 28
Results = Geocoder1.GetFromLocation(42.53252, 11.49774, 5, Null)
Word: )
hier is my code:
B4X:
Sub Process_Globals
Dim Geocoder1 As Geocoder
End Sub
Sub Globals
Dim Results() As Address
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Layout1")
Geocoder1.Initialize("Geocoder1")
Results = Geocoder1.GetFromLocation(42.53252, 11.49774, 5, Null)
Msgbox("Adress", Results)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub