Geoposition 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// You can use this class in JavaScript.
- Attributes
| 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 CivicAddress
Unsupported API.
public : CivicAddress CivicAddress { get; }public CivicAddress CivicAddress { get; }Public ReadOnly Property CivicAddress As CivicAddress// You can use this property in JavaScript.
Unsupported API. This property always returns null.
| 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 Coordinate
The latitude and longitude associated with a geographic location.
public : Geocoordinate Coordinate { get; }public Geocoordinate Coordinate { get; }Public ReadOnly Property Coordinate As Geocoordinate// You can use this property in JavaScript.
The latitude and longitude associated with a geographic location.
| 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 VenueData
Represents the venue associated with a geographic location.
public : VenueData VenueData { get; }public VenueData VenueData { get; }Public ReadOnly Property VenueData As VenueData// You can use this property in JavaScript.
A VenueData object that represents the venue associated with the geographic location.
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.