LocationDisp.CivicAddressReportFactory object

[The Location API object model is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, to access location from a website, use the W3C Geolocation API. To access location from a desktop application, use the Windows.Devices.Geolocation API.]

Manages civic address reports.

Members

The LocationDisp.CivicAddressReportFactory object has these types of members:

Methods

The LocationDisp.CivicAddressReportFactory object has these methods.

Method Description
ListenForReports Requests civic address report events.
RequestPermissions Opens a system dialog box to request user permission for location-enabled devices.
StopListeningForReports Cancels civic address report event requests.

Properties

The LocationDisp.CivicAddressReportFactory object has these properties.

Property Access type Description
CivicAddressReport
Read-only
The current LocationDisp.DispCivicAddressReport.
DesiredAccuracy
Read/write
The current desired-accuracy setting.
ReportInterval
Read/write
The current civic address report event interval in milliseconds.
Status
Read-only
The current report status.

Examples

The following example code shows how to create this object in HTML code.

<object id="civicfactory" 
    classid="clsid:2A11F42C-3E81-4ad4-9CBE-45579D89671A"
    type="application/x-oleobject">
</object>

The following example code shows how to create this object in JScript using Windows Script Host.

var civicfactory = WScript.CreateObject("LocationDisp.CivicAddressReportFactory");

The following example code shows how to create this object in VBScript using Windows Script Host.

Dim civicfactory
Set civicfactory = WScript.CreateObject("LocationDisp.CivicAddressReportFactory")

Requirements

Requirement Value
Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
None supported

See also

LocationDisp.CivicAddressReport