Module Geolocation

Index

Variables

Modules

Interfaces

Functions

Variables

ACCURACY_BEST: number

ACCURACY_BEST_FOR_NAVIGATION: number

ACCURACY_HIGH: number

ACCURACY_HUNDRED_METERS: number

ACCURACY_KILOMETER: number

ACCURACY_LOW: number

ACCURACY_NEAREST_TEN_METERS: number

ACCURACY_THREE_KILOMETERS: number

ACTIVITYTYPE_AUTOMOTIVE_NAVIGATION: string

ACTIVITYTYPE_FITNESS: string

ACTIVITYTYPE_OTHER: string

ACTIVITYTYPE_OTHER_NAVIGATION: string

AUTHORIZATION_AUTHORIZED: number

AUTHORIZATION_DENIED: number

AUTHORIZATION_RESTRICTED: number

AUTHORIZATION_UNKNOWN: number

ERROR_DENIED: number

ERROR_HEADING_FAILURE: number

ERROR_LOCATION_UNKNOWN: number

ERROR_NETWORK: number

ERROR_REGION_MONITORING_DELAYED: number

ERROR_REGION_MONITORING_DENIED: number

ERROR_REGION_MONITORING_FAILURE: number

ERROR_TIMEOUT: number

PROVIDER_GPS: string

PROVIDER_NETWORK: string

PROVIDER_PASSIVE: string

accuracy: number

activityType: number

bubbleParent: boolean

distanceFilter: number

frequency: number

hasCompass: boolean

headingFilter: number

lastGeolocation: string

locationServicesAuthorization: number

locationServicesEnabled: boolean

pauseLocationUpdateAutomatically: boolean

preferredProvider: string

purpose: string

showCalibration: boolean

trackSignificantLocationChange: boolean

Functions

addEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

applyProperties(props: Dictionary)

Parameters

fireEvent(name: string, event: Dictionary)

Parameters

forwardGeocoder(address: string, callback: (...args: any[]) => any)

Parameters

  • address: string
  • callback: (...args: any[]) => any

getAccuracy(): number

Returns

number

getActivityType(): number

Returns

number

getBubbleParent(): boolean

Returns

boolean

getCurrentHeading(callback: (...args: any[]) => any)

Parameters

  • callback: (...args: any[]) => any

getCurrentPosition(callback: (...args: any[]) => any)

Parameters

  • callback: (...args: any[]) => any

getDistanceFilter(): number

Returns

number

getFrequency(): number

Returns

number

getHasCompass(): boolean

Returns

boolean

getHeadingFilter(): number

Returns

number

getLastGeolocation(): string

Returns

string

getLocationServicesAuthorization(): number

Returns

number

getLocationServicesEnabled(): boolean

Returns

boolean

getPauseLocationUpdateAutomatically(): boolean

Returns

boolean

getPreferredProvider(): string

Returns

string

getPurpose(): string

Returns

string

getShowCalibration(): boolean

Returns

boolean

getTrackSignificantLocationChange(): boolean

Returns

boolean

removeEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

reverseGeocoder(latitude: number, longitude: number, callback: (...args: any[]) => any)

Parameters

  • latitude: number
  • longitude: number
  • callback: (...args: any[]) => any

setAccuracy(accuracy: number)

Parameters

  • accuracy: number

setActivityType(activityType: number)

Parameters

  • activityType: number

setBubbleParent(bubbleParent: boolean)

Parameters

  • bubbleParent: boolean

setDistanceFilter(distanceFilter: number)

Parameters

  • distanceFilter: number

setFrequency(frequency: number)

Parameters

  • frequency: number

setHeadingFilter(headingFilter: number)

Parameters

  • headingFilter: number

setLocationServicesAuthorization(locationServicesAuthorization: number)

Parameters

  • locationServicesAuthorization: number

setPauseLocationUpdateAutomatically(pauseLocationUpdateAutomatically: boolean)

Parameters

  • pauseLocationUpdateAutomatically: boolean

setPreferredProvider(preferredProvider: string)

Parameters

  • preferredProvider: string

setPurpose(purpose: string)

Parameters

  • purpose: string

setShowCalibration(showCalibration: boolean)

Parameters

  • showCalibration: boolean

setTrackSignificantLocationChange(trackSignificantLocationChange: boolean)

Parameters

  • trackSignificantLocationChange: boolean