DeviceGeolocation
Namespace: Wisej.Hybrid
Assembly: Wisej.Hybrid (4.1.0.0)
Provides methods to fetch the user's location.
- C#
- VB.NET
public class DeviceGeolocation
Public Class DeviceGeolocation
Access this class through the Device singleton.
Methods
GetLastKnownLocation()
Gets the device's last known location.
Returns: Location. The last known location.
GetLastKnownLocationAsync()
Gets the device's last known location.
Returns: Task<Location>. The last known location.
GetLocation(request)
Gets the device's location.
| Parameter | Type | Description |
|---|---|---|
| request | GeolocationRequest |
Returns: Location. The device's location.
GetLocationAsync(request)
Gets the device's location.
| Parameter | Type | Description |
|---|---|---|
| request | GeolocationRequest |
Returns: Task<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 null if no placemarks are found.
GetPlacemarksAsync(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: Task<Placemark[]>. List of Placemark that best match the coordinates or null if no placemarks are found.