Does the geolocation set of commands support the PC as well ? The help file does say that a location should be found using an internet connection, but at the moment StartGeolocation fails...
Problem solved : The first call returns invalid values, but subsequent calls are correct!
Geolocation on the PC [Solved]
Re: Geolocation on the PC [Solved]
seems so:MrTAToad wrote:Does the geolocation set of commands support the PC as well ?
Code: Select all
StartGeolocation()
Procedure TimerEvent()
Debug "GeolocationTime: " + GeolocationTime()
Debug "GeolocationLatitude: " + GeolocationLatitude()
Debug "GeolocationLongitude: " + GeolocationLongitude()
Debug "----"
EndProcedure
OpenWindow(0, 0, 0, 0, 0, "DummyWindow", #PB_Window_Invisible)
AddWindowTimer(0, 0, 1000)
BindEvent(#PB_Event_Timer, @TimerEvent(), 0, 0)
Greetings ... Peter
Re: Geolocation on the PC [Solved]
it's opt-in on every platform and it's not unusual to see it disabled. Compass is actually super-rare even on modern devices. Google maps uses some algorithm with accelerometer for direction when there is no compass chip on devices.
You can check all of this with Cordova libraries. There are also different coordinate format standards.
You can check all of this with Cordova libraries. There are also different coordinate format standards.
Re: Geolocation on the PC [Solved]
It was the first reading that originally made me think something funny was going on...