I can enable rerouting in Arcgis Runtime for .NET?

736
6
03-14-2022 05:45 AM
MARCORIVERA50501
New Contributor

Can you please tell me how I can enable rerouting in Arcgis Runtime for .NET?

We generate an apikey from our annual subscription as a developer, but when we are going to use the routing service, the rerouting option appears in "False"

 

Can you please tell me what we need to use this rerouting option.

 

Thanks

0 Kudos
6 Replies
MichaelBranscomb
Esri Frequent Contributor

The availability of the rerouting option is determined by the service or local network dataset. If the service does not support rerouting or does not advertise the parameter, the property value will be false. For local datasets it is always true. 

 

https://developers.arcgis.com/net/api-reference/api/netwin/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Tas...

https://developers.arcgis.com/net/wpf/sample-code/navigate-route-with-rerouting/ 

 

MARCORIVERA50501
New Contributor

Thanks, Michael. 

Is a special license or contract from ESRI needed to do rerouting?  to set the option to "True" in the service?

 

0 Kudos
MichaelBranscomb
Esri Frequent Contributor

Rerouting isn't determined by the license, only by the data/service. So if the service parameter "Supports Rerouting" is false then it cannot be changed unless the author republishes the service. In many cases re-routing needs local data to provide a response fast enough for the user to receive updated directions and respond. 

 

Can you provide more information about the functionality you're trying to build, e.g. are you using the Class RouteTracker and want to support re-routing?

0 Kudos
MARCORIVERA50501
New Contributor

Yes,  Michael

I am using the Class Route Tracker and want to support re-routing, but when I use the Class I immediately get the "developer watermark" and the ArcGis Runtime SDK does not recognize my license string that I generate from my developer subscription.

When I comment out the Route Tracker Class in my code so that it is not used in my application, the license string works correctly and the developer watermark disappears.

I want to use the Route Tracker Class with the "Lite" license and not show me the developer watermark. is this possible?


Thanks

0 Kudos
MichaelBranscomb
Esri Frequent Contributor

To use navigation capabilities with the RouteTracker you need a Basic license (see https://developers.arcgis.com/net/license-and-deployment/license/ and https://developers.arcgis.com/faq/#licensing-runtime-license-string-distributed).

 

This can be licensed in the form of a license string (as you have been doing with the Lite license string) or by enabling the user to sign in with an ArcGIS Identity at the level Editor, Field Worker, Basic, or higher  (https://developers.arcgis.com/faq/#licensing-runtime-named-user-license-levels)

 

Service-based re-routing is currently only supported with ArcGIS Enterprise (https://pro.arcgis.com/en/pro-app/latest/help/analysis/networks/publish-a-map-service-using-network-...). Alternatively re-routing is supported when working with network datasets in Mobile Map Packages, which can be packages you create yourself with ArcGIS Pro and that contain your street network dataset, or alternatively Streetmap Premium (https://developers.arcgis.com/net/route-and-directions/add-streetmap-premium-data/).   

 

Thanks

MARCORIVERA50501
New Contributor

Thanks Mike

0 Kudos