Skip to main content

DeviceGeolocation

Namespace: Wisej.Hybrid

Assembly: Wisej.Hybrid (4.1.0.0)

Provides methods to fetch the user's location.

public class DeviceGeolocation

Access this class through the Device singleton.

Methods​

Instance member GetLastKnownLocation()​

Gets the device's last known location.

Returns: Location. The last known location.

Instance member GetLastKnownLocationAsync()​

Gets the device's last known location.

Returns: Task<Location>. The last known location.

Instance member GetLocation(request)​

Gets the device's location.

ParameterTypeDescription
request optionalGeolocationRequest

Returns: Location. The device's location.

Instance member GetLocationAsync(request)​

Gets the device's location.

ParameterTypeDescription
request optionalGeolocationRequest

Returns: Task<Location>. The device's location.

Instance member GetPlacemarks(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 null if no placemarks are found.

Instance member GetPlacemarksAsync(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: Task<Placemark[]>. List of Placemark that best match the coordinates or null if no placemarks are found.