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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET