System.Device.Location Namespace | Microsoft Docs
Permits utility builders to simply entry the pc’s location through the use of a single API. Location data could come from a number of suppliers, corresponding to GPS, Wi-Fi triangulation, and mobile phone tower triangulation. The System.System.Location courses present a single API to encapsulate the a number of location suppliers on a pc and help seamless prioritization and transitioning between them. In consequence, utility builders who use this API don’t have to tailor functions to particular {hardware} configurations.
Lessons
Interfaces
ICivicAddressResolver |
Supplies a way that when carried out, resolves a latitude/longitude location to a civic handle. |
IGeoPositionWatcher |
Interface that may be carried out for offering accessing location information and receiving location updates. |
Enums
GeoPositionAccuracy |
Specifies the requested accuracy degree for the placement information that the appliance makes use of. |
GeoPositionPermission |
Signifies whether or not the calling utility has permission to entry location information. |
GeoPositionStatus |
Signifies the power of the placement supplier to offer location updates. |
Remarks
The GeoCoordinateWatcher class provides location information that’s primarily based on latitude and longitude coordinates. The CivicAddressResolver and ICivicAddressResolver sorts present the power to resolve from a coordinate location to a civic handle. Moreover, the IGeoPositionWatcher
In Home windows 7, all of the System.System.Location courses are absolutely useful if a location supplier is put in and may decide the pc’s location. On Home windows 7 Starter Version, the Default Location Supplier that may be set in Management Panel is the one location supplier that’s supported.
Word In variations of Home windows previous to Home windows 7, the next situations apply: