GuidanceTelemetryCollector GuidanceTelemetryCollector GuidanceTelemetryCollector GuidanceTelemetryCollector Class

Definition

Collects location data to report traffic conditions.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about the Windows.Services.Maps.Guidance namespace, please work with your Microsoft Account Team representative.

public : sealed class GuidanceTelemetryCollector : IGuidanceTelemetryCollectorpublic sealed class GuidanceTelemetryCollector : IGuidanceTelemetryCollectorPublic NotInheritable Class GuidanceTelemetryCollector Implements IGuidanceTelemetryCollector// This API is not available in Javascript.
Attributes
Windows 10 requirements
Device family
Windows Desktop Extension SDK (introduced v10.0.10240.0) Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Services.Maps.GuidanceContract (introduced v1)

Properties

Enabled Enabled Enabled Enabled

Gets or sets a value that indicates if location data is collected for traffic reporting.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about the Windows.Services.Maps.Guidance namespace, please work with your Microsoft Account Team representative.

public : PlatForm::Boolean Enabled { get; set; }public bool Enabled { get; set; }Public ReadWrite Property Enabled As bool// This API is not available in Javascript.
Value
PlatForm::Boolean bool bool bool

true if location data is collected for traffic reporting; otherwise, false.

SpeedTrigger SpeedTrigger SpeedTrigger SpeedTrigger

Gets or sets the speed at which data collection begins, in meters per second.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about the Windows.Services.Maps.Guidance namespace, please work with your Microsoft Account Team representative.

public : double SpeedTrigger { get; set; }public double SpeedTrigger { get; set; }Public ReadWrite Property SpeedTrigger As double// This API is not available in Javascript.
Value
double double double double

The speed at which data collection begins, in meters per second.

UploadFrequency UploadFrequency UploadFrequency UploadFrequency

Gets or sets the frequency in which traffic is reported, in seconds.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about the Windows.Services.Maps.Guidance namespace, please work with your Microsoft Account Team representative.

public : int UploadFrequency { get; set; }public int UploadFrequency { get; set; }Public ReadWrite Property UploadFrequency As int// This API is not available in Javascript.
Value
int int int int

The frequency in which traffic is reported, in seconds.

Methods

ClearLocalData() ClearLocalData() ClearLocalData() ClearLocalData()

Clears location data that's been stored locally by the GuidanceTelemetryCollector.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about the Windows.Services.Maps.Guidance namespace, please work with your Microsoft Account Team representative.

public : void ClearLocalData()public void ClearLocalData()Public Function ClearLocalData() As void// This API is not available in Javascript.

GetCurrent() GetCurrent() GetCurrent() GetCurrent()

Creates a GuidanceTelemetryCollector object for the current telemetry collector.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about the Windows.Services.Maps.Guidance namespace, please work with your Microsoft Account Team representative.

public : static GuidanceTelemetryCollector GetCurrent()public static GuidanceTelemetryCollector GetCurrent()Public Static Function GetCurrent() As GuidanceTelemetryCollector// This API is not available in Javascript.
Returns