GeoBlazor Pro
dymaptic.GeoBlazor.Pro
dymaptic.GeoBlazor.Pro.Components
RouteService Class
Find routes between two or more locations and optionally get driving directions. ArcGIS Maps SDK for JavaScript
public class RouteService : dymaptic.GeoBlazor.Pro.Model.ProLogicComponent
Inheritance System.Object 🡒 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
AuthenticationManager
jsModuleManager
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
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
RequestOptions
Additional options to be used for the data request.