Online Maps v3
Loading...
Searching...
No Matches
OnlineMapsLocationService Class Reference

Controls map using GPS.
Online Maps Location Service is a wrapper for Unity Location Service.
http://docs.unity3d.com/ScriptReference/LocationService.html. More...

Inheritance diagram for OnlineMapsLocationService:
OnlineMapsLocationServiceGenericBase< OnlineMapsLocationService >

Public Member Functions

void StartLocationService (float? desiredAccuracyInMeters=null, float? updateDistanceInMeters=null)
 Starts location service updates. Last location coordinates could be.
 

Public Attributes

float desiredAccuracy = 10
 Desired service accuracy in meters.
 
bool requestPermissionRuntime = true
 Request permission on Android at runtime when isEnabledByUser = false.
 
float updateDistance = 10
 The minimum distance (measured in meters) a device must move laterally before location is updated.
 

Properties

double distance [get]
 Distance in meters from the last location.
 
- Properties inherited from OnlineMapsLocationServiceGenericBase< OnlineMapsLocationService >
static T instance [get]
 Instance of LocationService.
 

Detailed Description

Controls map using GPS.
Online Maps Location Service is a wrapper for Unity Location Service.
http://docs.unity3d.com/ScriptReference/LocationService.html.

Member Function Documentation

◆ StartLocationService()

void OnlineMapsLocationService.StartLocationService ( float? desiredAccuracyInMeters = null,
float? updateDistanceInMeters = null )

Starts location service updates. Last location coordinates could be.

Parameters
desiredAccuracyInMetersDesired service accuracy in meters.
Using higher value like 500 usually does not require to turn GPS chip on and thus saves battery power.
Values like 5-10 could be used for getting best accuracy. Default value is 10 meters.
updateDistanceInMetersThe minimum distance (measured in meters) a device must move laterally before Input.location property is updated.
Higher values like 500 imply less overhead.