I’m very new to GIS and I may not know what I’m talking about at some points throughout this question so please bear with me. Currently I’m trying to make a Java application (using the ArcGIS SDK for Java) that finds a route (of streets) between two locations on a map without allowing any left turns. For the last couple of days I’ve been reading a lot of the pages on ArcGIS navigation…
For example (only a few):
https://developers.arcgis.com/java/guide/get-driving-directions.htm
https://developers.arcgis.com/java/guide/find-a-route.htm
…and unfortunately I’m still unclear to a number of things. I have a pretty general knowledge of how most of the processes work (i.e. creating a map) but I’m not quite sure how the actual routing works. I know there are two options (online and offline) to calculate a route but I’m curious as to which one would be better for my purposes. For example, I’ve notice when using an online route service to create a RouteTask
and later solving that route to a RouteResult
, everything is done on the ArcGIS servers. Meaning there’s no local algorithm I would be able to change to eliminate left turns. Upon realizing this I looked ways of doing this locally so that my application uses a .geodatabase file to do the routing all offline. That’s where I get stuck, I’m unsure how to optain a .geodatabase file with all the information that I need to write an algorithm to do routing without left turns. I’m not sure if I have to manually make one or if I can find one online. And then once I have one, how would I go about actually making a route with the data?
Am I on the right track with my thinking here, or have I missed something and really I could achieve what I need to do with the online service?
If anyone is able to help me with any of these questions I’d greatly appreciate it.