Geoposition Geoposition Geoposition Geoposition Class

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

Syntax

Declaration

public sealed class Geopositionpublic sealed class GeopositionPublic NotInheritable Class Geopositionpublic sealed class Geoposition

Remarks

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

Properties summary

Unsupported API.

The latitude and longitude associated with a geographic location.

Represents the venue associated with a geographic location.

Properties

  • CivicAddress
    CivicAddress
    CivicAddress
    CivicAddress

    Unsupported API.

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

    Property Value

    Remarks

    Civic address is no longer available. Even when a Civic Address provider is installed, 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
    Coordinate

    The latitude and longitude associated with a geographic location.

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

    Property Value

  • VenueData
    VenueData
    VenueData
    VenueData

    Represents the venue associated with a geographic location.

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

    Property Value

    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.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Capabilities

ID_CAP_LOCATION [Windows Phone]
location

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute

Details

Assembly

Windows.Devices.Geolocation.dll