DeviceGeolocation
Namespace: Wisej.Hybrid
Assembly: Wisej.Hybrid
Provides methods to fetch the user's location.
- C#
- VB.NET
public class DeviceGeolocation
Public Class DeviceGeolocation
Access this class through the Device singleton.
Constructors
DeviceGeolocation()
Initializes a new instance of DeviceGeolocation.
Methods
GetLastKnownLocation()
Gets the device's last known location.
Returns: Location. The last known location.
GetLocation(request)
Gets the device's location.
| Parameter | Type | Description |
|---|---|---|
| request | GeolocationRequest |
Returns: Location. The device's location.
GetPlacemarks(lat, lon)
Retrieve potential placemarks for a given location specified by coordinates.
| Parameter | Type | Description |
|---|---|---|
| lat | Double | The latitude coordinate to find placemarks near. |
| lon | Double | The longitude coordinate to find placemarks near. |
Returns: Placemark[]. List of Placemark that best match the coordinates or if no placemarks are found.