GuidanceRoadSegment GuidanceRoadSegment GuidanceRoadSegment GuidanceRoadSegment Class

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Represents the road on a segment of the route.

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 GuidanceRoadSegment : IGuidanceRoadSegmentpublic sealed class GuidanceRoadSegment : IGuidanceRoadSegmentPublic NotInheritable Class GuidanceRoadSegment Implements IGuidanceRoadSegment// 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

Id Id Id Id

Gets the identifier of the road segment.

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::String Id { get; }public string Id { get; }Public ReadOnly Property Id As string// This API is not available in Javascript.
Value
PlatForm::String string string string

The identifier of the road segment.

IsHighway IsHighway IsHighway IsHighway

Gets a value that indicates of the road segment is a highway.

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 IsHighway { get; }public bool IsHighway { get; }Public ReadOnly Property IsHighway As bool// This API is not available in Javascript.
Value
PlatForm::Boolean bool bool bool

true if the road segment is a highway; otherwise, false.

IsScenic IsScenic IsScenic IsScenic

Prerelease. Gets a value that indicates of the road segment is scenic.

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 IsScenic { get; }public bool IsScenic { get; }Public ReadOnly Property IsScenic As bool// This API is not available in Javascript.
Value
PlatForm::Boolean bool bool bool

true if the road segment is scenic; otherwise, false.

Additional features and requirements
Device family
Windows Desktop Extension SDK (introduced v10.0.16257.0) Windows Mobile Extension SDK (introduced v10.0.16257.0) Windows Team Extension SDK (introduced v10.0.16257.0)
API contract
Windows.Services.Maps.GuidanceContract (introduced v3)

IsTollRoad IsTollRoad IsTollRoad IsTollRoad

Gets a value that indicates of the road segment is a toll road.

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 IsTollRoad { get; }public bool IsTollRoad { get; }Public ReadOnly Property IsTollRoad As bool// This API is not available in Javascript.
Value
PlatForm::Boolean bool bool bool

true if the road segment is a toll road; otherwise, false.

IsTunnel IsTunnel IsTunnel IsTunnel

Gets a value that indicates of the road segment is a tunnel.

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 IsTunnel { get; }public bool IsTunnel { get; }Public ReadOnly Property IsTunnel As bool// This API is not available in Javascript.
Value
PlatForm::Boolean bool bool bool

true if the road segment is a tunnel; otherwise, false.

Path Path Path Path

Gets an ordered series geographic points that describe road segment.

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 : Geopath Path { get; }public Geopath Path { get; }Public ReadOnly Property Path As Geopath// This API is not available in Javascript.
Value
Geopath Geopath Geopath Geopath

An ordered series geographic points that describe road segment.

RoadName RoadName RoadName RoadName

Gets the full name of the road.

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::String RoadName { get; }public string RoadName { get; }Public ReadOnly Property RoadName As string// This API is not available in Javascript.
Value
PlatForm::String string string string

The full name of the road.

ShortRoadName ShortRoadName ShortRoadName ShortRoadName

Gets the short name of the road.

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::String ShortRoadName { get; }public string ShortRoadName { get; }Public ReadOnly Property ShortRoadName As string// This API is not available in Javascript.
Value
PlatForm::String string string string

The short name of the road.

SpeedLimit SpeedLimit SpeedLimit SpeedLimit

Gets the speed limit of the road segment.

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 SpeedLimit { get; }public double SpeedLimit { get; }Public ReadOnly Property SpeedLimit As double// This API is not available in Javascript.
Value
double double double double

The speed limit of the road segment.

TravelTime TravelTime TravelTime TravelTime

Gets the travel time of the road segment.

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 : TimeSpan TravelTime { get; }public TimeSpan TravelTime { get; }Public ReadOnly Property TravelTime As TimeSpan// This API is not available in Javascript.
Value
TimeSpan TimeSpan TimeSpan TimeSpan

The travel time of the road segment.