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 class.

Location(latitude, longitude)

Initializes a new instance of the 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 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.

Name
Type
Description

latitude

Default latitude for location.

longitude

Default longitude for location.

altitude

Default altitude for location.

Name
Type
Description

point

Throws:

Properties

Returns 0 or if not available.

Returns 0 or if not available.

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

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.

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.

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.

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.

Location(latitude, longitude, altitude)

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

Location(point)

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

A instance that will be used to clone.

Thrown if point is .

Accuracy

: Gets or sets the horizontal accuracy (in meters) of the location.

Altitude

: Gets the altitude in meters (if available) in a reference system which is specified by .

AltitudeReferenceSystem

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

Course

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

IsFromMockProvider

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

Latitude

: Gets or sets the latitude coordinate of this location.

Longitude

: Gets or sets the longitude coordinate of this location.

ReducedAccuracy

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

Speed

: 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 to be or better.

Timestamp

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

VerticalAccuracy

: Gets or sets the vertical accuracy (in meters) of the location.

CalculateDistance(latitudeStart, longitudeStart, locationEnd, units)

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

CalculateDistance(locationStart, latitudeEnd, longitudeEnd, units)

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

CalculateDistance(locationStart, locationEnd, units)

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

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

Calculate distance between two instances.

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

Location
Location
ArgumentNullException
Nullable<Double>
Nullable<Double>
Boolean
Double
Double
Boolean
Nullable<Double>
DateTimeOffset
Nullable<Double>
Double
Double
Double
Location
Double
Nullable<Double>
AltitudeReferenceSystem
AltitudeReferenceSystem
Altitude
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
Location
Location
Location
Accuracy
High