Wisej.NET Hybrid
HomeNewsSupportVideos
  • Start
    • Introduction
    • Getting Started
    • Going Native with Wisej.NET Hybrid
    • Features
    • API
      • General
        • DeviceInfoBase
        • Device
        • DeviceException
        • DeviceInfo
        • DeviceEvent
        • DeviceException
        • HybridResourcesAttribute
      • Shortcuts
        • DeviceAppActions
        • DeviceAppActionsInfo
        • DeviceAppInfo
        • AppAction
      • Navigation
        • DeviceAppLinks
        • DeviceBrowser
        • DeviceLauncher
        • DeviceNavigation
        • DeviceWindows
        • DeviceWindowsInfo
        • AppLinkEntry
        • BrowserLaunchMode
        • BrowserLaunchOptions
        • BrowserTitleMode
      • Authentication
        • DeviceAuthenticator
        • IWebAuthenticatorResponseDecoder
        • WebAuthenticatorOptions
        • WebAuthenticatorResult
      • UI
        • DeviceBackground
        • DeviceBorder
        • DeviceBottomBar
        • DeviceColors
        • DeviceMenuBar
        • DevicePopups
        • DeviceStatusBar
        • DeviceTabBar
        • DeviceTheme
        • DeviceToolbar
        • MenuItemClickedEventArgs
        • MenuItem
        • MenuItemType
        • AppTheme
        • StatusBarTextColor
        • TabBarItem
        • TabSelectedEventArgs
        • AppTheme
        • ToolbarItem
        • ToolbarItemClickedEventArgs
        • ToolbarItemType
      • Hardware
        • DeviceBatteryInfo
        • DeviceFlashlight
        • BatteryPowerSource
        • BatteryState
        • EnergySaverStatus
        • EnergySaverStatusChangedEventArgs
      • Sharing
        • DeviceClipboard
        • DeviceSharing
      • Communication
        • DeviceContacts
        • DeviceEmail
        • DeviceEmailInfo
        • DeviceSms
        • DeviceSmsInfo
        • Contact
        • EmailMessage
        • SmsMessage
      • Network
        • DeviceNetworkingInfo
        • ConnectionProfile
        • ConnectivityChangedEventArgs
        • NetworkAccess
      • Display
        • DeviceDisplay
        • DeviceScreen
        • DisplayInfo
        • DisplayInfo
        • DisplayInfoChangedEventArgs
        • DisplayOrientation
        • DisplayRotation
        • Orientation
      • Storage
        • DeviceFileSystem
        • DevicePreferences
        • DeviceResources
        • DeviceSecureStorage
        • FileSystemInfo
      • Location
        • DeviceGeolocation
        • DeviceMap
        • AltitudeReferenceSystem
        • DistanceUnits
        • GeolocationAccuracy
        • GeolocationRequest
        • Location
        • Placemark
        • MapLaunchOptions
        • NavigationMode
      • Vibration
        • DeviceHapticFeedback
        • DeviceHapticFeedbackInfo
        • DeviceVibration
      • License
        • DeviceLicenseInfo
      • System
        • DeviceLifecycle
        • DeviceSystemInfo
        • DeviceVersioningInfo
        • AppPackagingModel
        • DeviceIdiom
        • DevicePlatform
        • DeviceType
      • Notifications
        • DeviceLocalNotification
        • DeviceLocalNotificationInfo
      • Logs
        • DeviceLogs
      • Media
        • DeviceMedia
      • Permissions
        • DevicePermissions
        • PermissionStatus
        • PermissionType
      • Sensors
        • DeviceSensorInfo
        • DeviceSensors
        • AccelerometerChangedEventArgs
        • AccelerometerData
        • BarometerChangedEventArgs
        • BarometerData
        • CompassChangedEventArgs
        • CompassData
        • GyroscopeChangedEventArgs
        • GyroscopeData
        • MagnetometerChangedEventArgs
        • MagnetometerData
        • OrientationSensorChangedEventArgs
        • OrientationSensorData
        • SensorChangedEventArgs
        • SensorType
      • Shell
        • DeviceFlyout
        • DeviceTitleBar
        • FlyoutBehavior
        • FlyoutHeaderBehavior
        • FlyoutItem
        • FlyoutItemSelectedEventArgs
      • Speech
        • DeviceSpeech
        • Locale
        • SpeechOptions
      • Converters
        • UnitConverters
    • Architecture
    • Troubleshooting
  • Development
    • Basics
    • Email
    • Haptic Feedback
    • Invoke .NET MAUI Code
    • Invoke Platform Code
    • Launch External Apps
    • License Activation
    • Local Application
    • MacOS Desktop Development
    • Multiple Windows (Desktop)
    • Network Events
    • Notifications
    • Open the Map App
    • Remote Application
    • Shortcuts (App Actions)
    • SVG Images & Icon Packs
    • Unit Converters
    • Updating the App
    • Vibration
  • Android
    • Soft Keyboard
  • Images
    • App Icons
    • Splash Screen
  • Debugging
    • Debugging Overview
    • Dev Tunnels
    • Android
    • iOS
    • Windows
  • REST Web Services
    • Detect network connectivity
    • REST with HttpClient
    • Use platform-specific network features
  • Storage
    • Compare Storage Options
    • Store Data locally with SQLite
  • Extensions
    • Overview
    • Document Scanner
    • Remote Push Notifications
  • Advanced
    • Custom Handler
    • iOS Build Mechanics
    • Multi-Targeting (Hybrid Local)
  • Samples
    • Wisej.NET Features
    • Examples on GitHub
  • Deployment
    • Deployment Overview
    • Deployment Guide
  • Application Profiling
    • Android
    • iOS / macOS
    • Windows
Powered by GitBook
On this page
  • Constructors
  • Location()
  • Location(latitude, longitude)
  • Location(latitude, longitude, timestamp)
  • Location(latitude, longitude, altitude)
  • Location(point)
  • Properties
  • Accuracy
  • Altitude
  • AltitudeReferenceSystem
  • Course
  • IsFromMockProvider
  • Latitude
  • Longitude
  • ReducedAccuracy
  • Speed
  • Timestamp
  • VerticalAccuracy
  • Methods
  • CalculateDistance(latitudeStart, longitudeStart, locationEnd, units)
  • CalculateDistance(locationStart, latitudeEnd, longitudeEnd, units)
  • CalculateDistance(locationStart, locationEnd, units)
  • CalculateDistance(latitudeStart, longitudeStart, latitudeEnd, longitudeEnd, units)
  1. Start
  2. API
  3. Location

Location

Wisej.Hybrid.Shared.Geolocation.Location

PreviousGeolocationRequestNextPlacemark

Last updated 1 year ago

Namespace: Wisej.Hybrid.Shared.Geolocation

Assembly: Wisej.Hybrid (3.5.0.0)

Represents a physical location with the latitude, longitude, altitude and time information reported by the device.

public class Location
Public Class Location

Constructors

Location()

Initializes a new instance of the Location class.

Location(latitude, longitude)

Initializes a new instance of the Location class with the specified latitude and longitude.

Name
Type
Description

latitude

Default latitude for location.

longitude

Default longitude for location.

Location(latitude, longitude, timestamp)

Initializes a new instance of the Location class with the specified latitude, longitude, and timestamp.

Name
Type
Description

latitude

Default latitude for location.

longitude

Default longitude for location.

timestamp

UTC timestamp for the location.

Initializes a new instance of the Location class with the specified latitude, longitude, and altitude.

Name
Type
Description

latitude

Default latitude for location.

longitude

Default longitude for location.

altitude

Default altitude for location.

Initializes a new instance of the Location class from an existing instance.

Name
Type
Description

point

Throws:

  • ArgumentNullException Thrown if point is .

Properties

Nullable<Double>: Gets or sets the horizontal accuracy (in meters) of the location.

Nullable<Double>: Gets the altitude in meters (if available) in a reference system which is specified by AltitudeReferenceSystem.

Returns 0 or if not available.

AltitudeReferenceSystem: Specifies the reference system in which the Altitude value is expressed.

Nullable<Double>: Gets or sets the current degrees relative to true north at the time when this location was determined.

Returns 0 or if not available.

Boolean: Gets or sets whether this location originates from a mocked sensor and thus might not be the real location of the device.

Double: Gets or sets the latitude coordinate of this location.

Double: Gets or sets the longitude coordinate of this location.

Boolean: Gets or sets whether this location has a reduced accuracy reading.

This functionality only applies to iOS. Other platforms will always report false.

Nullable<Double>: Gets or sets the current speed in meters per second at the time when this location was determined.

Returns 0 or if not available. Otherwise the value will range between 0-360. Requires Accuracy to be High or better.

DateTimeOffset: Gets or sets the timestamp of the location in UTC.

Nullable<Double>: Gets or sets the vertical accuracy (in meters) of the location.

Methods

Calculate distance between two locations.

Parameter
Type
Description

latitudeStart

Latitude coordinate of the starting location.

longitudeStart

Longitude coordinate of the starting location.

locationEnd

The end location.

units

The unit in which the result distance is returned.

Returns: Double. Distance between two locations in the unit selected.

Calculate distance between two locations.

Parameter
Type
Description

locationStart

The start location.

latitudeEnd

Latitude coordinate of the end location.

longitudeEnd

Longitude coordinate of the end location.

units

The unit in which the result distance is returned.

Returns: Double. Distance between two locations in the unit selected.

Calculate distance between two locations.

Parameter
Type
Description

locationStart

The start location.

locationEnd

The end location.

units

The unit in which the result distance is returned.

Returns: Double. Distance between two locations in the unit selected.

Calculate distance between two Location instances.

Parameter
Type
Description

latitudeStart

Latitude coordinate of the starting location.

longitudeStart

Longitude coordinate of the starting location.

latitudeEnd

Latitude coordinate of the end location.

longitudeEnd

Longitude coordinate of the end location.

units

The unit in which the result distance is returned.

Returns: Double. Distance between two locations in the unit selected.

Location(latitude, longitude, altitude)

Location(point)

A instance that will be used to clone.

Accuracy

Altitude

AltitudeReferenceSystem

Course

IsFromMockProvider

Latitude

Longitude

ReducedAccuracy

Speed

Timestamp

VerticalAccuracy

CalculateDistance(latitudeStart, longitudeStart, locationEnd, units)

CalculateDistance(locationStart, latitudeEnd, longitudeEnd, units)

CalculateDistance(locationStart, locationEnd, units)

CalculateDistance(latitudeStart, longitudeStart, latitudeEnd, longitudeEnd, units)

Double
Double
Double
Double
DateTimeOffset
Double
Double
Double
Location
Location
Double
Double
Location
DistanceUnits
Location
Double
Double
DistanceUnits
Location
Location
DistanceUnits
Double
Double
Double
Double
DistanceUnits