Alex, thank you for the reply. I have tried the following code:
public Text txtGPS;
void Start () {
...
OnlineMapsLocationService.instance.OnLocationChanged += OnLocationChanged;
}
private void OnLocationChanged(Vector2 position) {
float lon, lat;
OnlineMapsLocationService.instance.GetLocation (out lon, out lat);
txtGPS.text = " Lat: "+lat+"\nLon: "+lon;
}
There are my OnlineMapsLocationService component settings:
Desired Acuracy (meters): 1
Compass Threshold: 8
Find Location By IP: [checked]
Update Map Position: [checked]
Update Distance: 2
Auto Stop On Input: [not checked]
Restore After (sec): 10
Create Marker: [not checked]
Use GPS Emulator: [checked]
Disable Emulator on Publish: [checked]
Latitude: 55.7522
Longitude: 37.6156
Compass (0-360): 0
Unfortunately, there were no one OnLocationChanged() call running in Unity3D Editor during 10 minutes. On the phone the code works fine, GPS coordinates are shown and changing.