GeoBlazor Pro

dymaptic.GeoBlazor.Pro

dymaptic.GeoBlazor.Pro.Components

RouteService 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 RouteService : dymaptic.GeoBlazor.Pro.Model.ProLogicComponent

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

Constructors

RouteService(AuthenticationManager, JsModuleManager, IAppValidator, IJSRuntime) Constructor

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

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

Parameters

authenticationManager dymaptic.GeoBlazor.Core.Model.AuthenticationManager

jsModuleManager dymaptic.GeoBlazor.Core.JsModuleManager

appValidator dymaptic.GeoBlazor.Core.IAppValidator

jsRuntime Microsoft.JSInterop.IJSRuntime

Methods

RouteService.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

RouteService.Solve(string, RouteParameters, RequestOptions) Method

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

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Results.RouteSolveResult> Solve(string url, dymaptic.GeoBlazor.Pro.Model.RouteParameters routeParameters, dymaptic.GeoBlazor.Core.Options.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.Options.RequestOptions

Additional options to be used for the data request.

Returns

System.Threading.Tasks.Task<RouteSolveResult>