GeoBlazor Pro


layout: pro title: Route parent: Pro Classes grand_parent: GeoBlazor Pro —

dymaptic.GeoBlazor.Pro

dymaptic.GeoBlazor.Pro.Model

Route Class

Find routes between two or more locations and optionally get driving directions. The route module uses ArcGIS Server network analysis services to calculate routes. Network analysis services allow you to solve simple routing problems as well as complex ones that take into account multiple stops, barriers, and time windows.
ArcGIS Maps SDK for JavaScript

public class Route : dymaptic.GeoBlazor.Pro.Model.ProLogicComponent

Inheritance System.Object 🡒 dymaptic.GeoBlazor.Core.Model.LogicComponent 🡒 ProLogicComponent 🡒 Route

Constructors

Route(IJSRuntime, AuthenticationManager, IAppValidator) Constructor

Constructor for use by Dependency Injection. Use AddGeoBlazorPro(this IServiceCollection, IConfiguration) in your startup code.

public Route(Microsoft.JSInterop.IJSRuntime jsRuntime, dymaptic.GeoBlazor.Core.Model.AuthenticationManager authenticationManager, dymaptic.GeoBlazor.Core.IAppValidator appValidator);

Parameters

jsRuntime Microsoft.JSInterop.IJSRuntime

authenticationManager dymaptic.GeoBlazor.Core.Model.AuthenticationManager

appValidator dymaptic.GeoBlazor.Core.IAppValidator

Methods

Route.JsGraphicsStreamCallback(IJSStreamReference, string, Nullable) Method

Internal callback function from JavaScript, do not call directly.

public System.Threading.Tasks.Task JsGraphicsStreamCallback(Microsoft.JSInterop.IJSStreamReference streamReference, string collectionName, System.Nullable<int> index);

Parameters

streamReference Microsoft.JSInterop.IJSStreamReference

collectionName System.String

index System.Nullable<System.Int32>

Returns

System.Threading.Tasks.Task

Route.Solve(string, RouteParameters, RequestOptions) Method

Solves the route against the route layer with the route parameters.

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Model.RouteSolveResult> Solve(string url, dymaptic.GeoBlazor.Pro.Model.RouteParameters routeParameters, dymaptic.GeoBlazor.Core.Model.RequestOptions? requestOptions=null);

Parameters

url System.String

URL to the ArcGIS Server REST resource that represents a network analysis service.

routeParameters RouteParameters

Route parameters used as input to generate the route.

requestOptions dymaptic.GeoBlazor.Core.Model.RequestOptions

Additional options to be used for the data request.

Returns

System.Threading.Tasks.Task<RouteSolveResult>