Windows Dev Center

Geoposition class

Represents a location that may contain latitude and longitude data or venue data.

Syntax


/* For information about creating or accessing this object, see Remarks. */

Members

The Geoposition class has these types of members:

Properties

The Geoposition class has these properties.

PropertyAccess typeDescription

CivicAddress

Read-onlyUnsupported API.

Coordinate

Read-onlyThe latitude and longitude associated with a geographic location.

VenueData

Read-onlyRepresents the venue associated with a geographic location.

 

Remarks

Retrieve a Geoposition object by using the GetGeopositionAsync method or handling the PositionChanged event.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Capabilities

location
ID_CAP_LOCATION [Windows Phone]

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

None supported [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8

Namespace

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

Metadata

Windows.winmd

Capabilities

location
ID_CAP_LOCATION [Windows Phone]

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Version(0x06020000)]

See also

Object

 

 

Show:
© 2015 Microsoft