Compartilhar via


MapsRoutingModelFactory.RouteData Método

Definição

Inicializa uma nova instância de 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

Parâmetros

summary
RouteSummary

Objeto Summary.

legs
IEnumerable<RouteLeg>

Matriz de pernas.

sections
IEnumerable<RouteSection>

Matriz de seções.

guidance
RouteGuidance

Contém elementos relacionados a diretrizes. Esse campo só está presente quando as diretrizes foram solicitadas e estão disponíveis.

Retornos

Uma nova RouteData instância para zombar.

Aplica-se a