Udostępnij za pośrednictwem


MapsRoutingModelFactory.RouteData Method

Definition

Initializes a new instance of RouteData.

public static Azure.Maps.Routing.Models.RouteData RouteData (Azure.Maps.Routing.Models.RouteSummary summary = default, System.Collections.Generic.IEnumerable<Azure.Maps.Routing.Models.RouteLeg> legs = default, System.Collections.Generic.IEnumerable<Azure.Maps.Routing.Models.RouteSection> sections = default, Azure.Maps.Routing.Models.RouteGuidance guidance = default);
static member RouteData : Azure.Maps.Routing.Models.RouteSummary * seq<Azure.Maps.Routing.Models.RouteLeg> * seq<Azure.Maps.Routing.Models.RouteSection> * Azure.Maps.Routing.Models.RouteGuidance -> Azure.Maps.Routing.Models.RouteData
Public Shared Function RouteData (Optional summary As RouteSummary = Nothing, Optional legs As IEnumerable(Of RouteLeg) = Nothing, Optional sections As IEnumerable(Of RouteSection) = Nothing, Optional guidance As RouteGuidance = Nothing) As RouteData

Parameters

summary
RouteSummary

Summary object.

legs
IEnumerable<RouteLeg>

Legs array.

sections
IEnumerable<RouteSection>

Sections array.

guidance
RouteGuidance

Contains guidance related elements. This field is present only when guidance was requested and is available.

Returns

A new RouteData instance for mocking.

Applies to