Skip to main content

DeviceGeolocation

Namespace: Wisej.Hybrid

Assembly: Wisej.Hybrid

Provides methods to fetch the user's location.

public class DeviceGeolocation

Access this class through the Device singleton.

Constructors

Instance memberDeviceGeolocation()

Initializes a new instance of DeviceGeolocation.

Methods

Instance memberGetLastKnownLocation()

Gets the device's last known location.

Returns: Location. The last known location.

Instance memberGetLocation(request)

Gets the device's location.

ParameterTypeDescription
request optionalGeolocationRequest

Returns: Location. The device's location.

Instance memberGetPlacemarks(lat, lon)

Retrieve potential placemarks for a given location specified by coordinates.

ParameterTypeDescription
latDoubleThe latitude coordinate to find placemarks near.
lonDoubleThe longitude coordinate to find placemarks near.

Returns: Placemark[]. List of Placemark that best match the coordinates or if no placemarks are found.