Windows.Devices.Geolocation namespace

Applies to Windows and Windows Phone

Provides APIs for obtaining the device's current geographic location or tracking the device's location over time.

Location information may come from estimating a position from beacons like Wi-Fi access points and cell towers, from the device's IP address, or it may come from other sources such as a GNSS device. The Windows.Devices.Geolocation API provides the most appropriate geolocation data from all available sources.

Members

The Windows.Devices.Geolocation namespace has these types of members:

Classes

The Windows.Devices.Geolocation namespace has these classes.

ClassDescription
CivicAddress Represents the civic address data associated with a geographic location.
GeoboundingBox Represents a rectangle that defines a geographic area.
Geocircle Describes a geographic circle with a center point and a radius.
Geocoordinate Contains the information for identifying a geographic location.
GeocoordinateSatelliteData Provides additional information about a Geocoordinate. This information is only applicable to position estimates obtained using satellite signals.
Geolocator Provides access to the current geographic location.
Geopath Represents an ordered series of geographic points.
Geopoint Describes a geographic point.
Geoposition Represents a location that may contain latitude and longitude data or civic address data.
PositionChangedEventArgs Provides data for the PositionChanged event.
StatusChangedEventArgs Provides information for the StatusChanged event.

 

Enumerations

The Windows.Devices.Geolocation namespace has these enumerations.

EnumerationDescription
AltitudeReferenceSystem Indicates the altitude reference system to be used in defining a geographic shape.
GeoshapeType Indicates the shape of a geographic region.
PositionAccuracy Indicates the requested accuracy level for the location data that the application uses.
PositionSource Indicates the source used to obtain a Geocoordinate.
PositionStatus Indicates the ability of the Geolocator object to provide location data.

 

Interfaces

The Windows.Devices.Geolocation namespace defines these interfaces.

InterfaceDescription
IGeoshape Interface to define a geographic shape.

 

Structures

The Windows.Devices.Geolocation namespace has these structures.

StructureDescription
BasicGeoposition The basic information to describe a geographic position.

 

Requirements

Minimum supported client

Windows 8

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8

Namespace

Windows.Devices.Geolocation
Windows::Devices::Geolocation [C++]

Metadata

Windows.winmd

Capabilities

location
ID_CAP_LOCATION [Windows Phone]

 

 

Show:
© 2014 Microsoft