Udostępnij za pośrednictwem


MapsRoutingModelFactory.RouteGuidance Method

Definition

Initializes a new instance of RouteGuidance.

public static Azure.Maps.Routing.Models.RouteGuidance RouteGuidance (System.Collections.Generic.IEnumerable<Azure.Maps.Routing.Models.RouteInstruction> instructions = default, System.Collections.Generic.IEnumerable<Azure.Maps.Routing.Models.RouteInstructionGroup> instructionGroups = default);
static member RouteGuidance : seq<Azure.Maps.Routing.Models.RouteInstruction> * seq<Azure.Maps.Routing.Models.RouteInstructionGroup> -> Azure.Maps.Routing.Models.RouteGuidance
Public Shared Function RouteGuidance (Optional instructions As IEnumerable(Of RouteInstruction) = Nothing, Optional instructionGroups As IEnumerable(Of RouteInstructionGroup) = Nothing) As RouteGuidance

Parameters

instructions
IEnumerable<RouteInstruction>

A list of instructions describing maneuvers.

instructionGroups
IEnumerable<RouteInstructionGroup>

Groups a sequence of instruction elements which are related to each other.

Returns

A new RouteGuidance instance for mocking.

Applies to