Skip to content

Latest commit

 

History

History

location

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Module: "location"

// To import the "location" module:
var location = require("location");

How to "location"

Class Description
Location A data class that encapsulates common properties for a geolocation.
LocationManager Provides methods for querying geolocation (in case available) on the target platform.
Enum Description
Accuracy Specifies common accuracy values.
Object Description
Options Provides options for location monitoring.
Functions
  • getLocation( options? Options ) Promise...
    Fires a single shot location search. If you specify timeout in options, location search will fail on timeout. If you specify timeout = 0 it just requests the last known location. However if you specify maximumAge and the location received is older it won't be received.
    • options - (optional) - Options
      An optional object specifying location update settings.
    • return - Promise of Location