ArcGIS Android Issue
Hi Thanks for awesome map.I have couple of questions.
1. navigate-route
I can see for online map routing, sample app is using this url.
https://sampleserver6.arcgisonline.com/arcgis/rest/services/NetworkAnalysis/SanDiego/NAServer/Route
and it is working fine, But when I start adding different start and stop point, It is not working. When I read doc It says "Create a RouteTask using a URL to an online route service."
This is what I got from stack exchange.
Now my question is how can I generate similar Network Analyst Service URL for my purpose?. some steps would be appreciated.
2. arcgis-runtime-samples-android
I can see we are using mmpk to load map and route between two point and it is working fine, Question is how can I generate mmpk that has map,navigation?. Some steps would be appreciated.
Solved! Go to Solution.
1. The sample server 6 URL used in the "Navigate Route" sample provides routing information only for an area within San Diego. So you could add different points within the realm of the URL to view different routes. To create your own routing service visit Publish routing services and the tutorial to Publish a network analysis service for more information.
2. You can create a mobile map package file using ArcGIS Pro which supports routing using a "Route Layer". This can be done on ArcGIS Pro in the Analysis tab, in the Workflows group, click Network Analysis > Route. Once you set up the Route Layer, you can create an MMPK file using the Share tab, and click New Mobile Map Package. In ArcGIS runtime using the MMPK file you can then navigate using
LocationDisplay.AutoPanMode.NAVIGATION
Could you at least point out the resource or tool where I can achieve the same.
Hopefully this answer helps!
1. The sample server 6 URL used in the "Navigate Route" sample provides routing information only for an area within San Diego. So you could add different points within the realm of the URL to view different routes. To create your own routing service visit Publish routing services and the tutorial to Publish a network analysis service for more information.
2. You can create a mobile map package file using ArcGIS Pro which supports routing using a "Route Layer". This can be done on ArcGIS Pro in the Analysis tab, in the Workflows group, click Network Analysis > Route. Once you set up the Route Layer, you can create an MMPK file using the Share tab, and click New Mobile Map Package. In ArcGIS runtime using the MMPK file you can then navigate using
LocationDisplay.AutoPanMode.NAVIGATION