Geoposition Geoposition Geoposition Class

Definition

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

public sealed class Geoposition : IGeoposition, IGeoposition2public sealed class Geoposition : IGeoposition, IGeoposition2Public NotInheritable Class Geoposition Implements IGeoposition, IGeoposition2
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
ID_CAP_LOCATION [Windows Phone] location

Remarks

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

Properties

CivicAddress CivicAddress CivicAddress

Unsupported API.

public CivicAddress CivicAddress { get; }public CivicAddress CivicAddress { get; }Public ReadOnly Property CivicAddress As CivicAddress
Value
CivicAddress CivicAddress CivicAddress

Unsupported API. This property always returns null.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
ID_CAP_LOCATION [Windows Phone] location

Remarks

Civic address is no longer available. Even when a Civic Address provider is installed, Geoposition.CivicAddress will always return NULL.

Note

This API is backwards compatible. When used in apps compiled for Windows 8.1 and Windows Phone 8.1, this API will continue to provide the civic address when it’s available.

Coordinate Coordinate Coordinate

The latitude and longitude associated with a geographic location.

public Geocoordinate Coordinate { get; }public Geocoordinate Coordinate { get; }Public ReadOnly Property Coordinate As Geocoordinate
Value
Geocoordinate Geocoordinate Geocoordinate

The latitude and longitude associated with a geographic location.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
ID_CAP_LOCATION [Windows Phone] location

VenueData VenueData VenueData

Represents the venue associated with a geographic location.

public VenueData VenueData { get; }public VenueData VenueData { get; }Public ReadOnly Property VenueData As VenueData
Value
VenueData VenueData VenueData

A VenueData object that represents the venue associated with the geographic location.

Attributes

Remarks

This property represents a venue, such as a shopping mall or office building. The VenueData object is created as a property of the Geoposition class when venue information is available for a geographic location. Otherwise, this property returns NULL.

Venue information is not available for all geographic locations. A VenueData object will be returned only when the geographic location is within a venue that’s supported by the data provider.

Note

In the current release, Bing is the exclusive data provider for all venue information.