MapsRoutingModelFactory.RouteData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.
Azure SDK for .NET