Hello, I downloaded the Routing Sample. I created my own map ( a floor map of a building) on arcmap. Created routes on the map and then pushed the map document to the arcgis server. The map and the custom routes show up fine on the app. However, the routes only show up when i press down on a destination on the map. When I try to find a route by typing in the name of one of my stops in the "Routing Sample" dialog fragment(from the "get directions icon"), i get the following error:
"com.esri.core.io.Esri service exception: unable to complete operation. Location "Location 2" in "stops" is unlocated. Need at least two valid stops. "Stops" does not contain valid input for any routest".
I am only able to find a route when i press down a location, not when i type in the location. Has this happened to anyone? thanks in advance
Here is what the app looks like:
Solved! Go to Solution.
Did you configure the locator on line 238 to point to your own locator service?
(a.k.a., the R.string.geocode_url)?
Where did you download the sample from?
From here: https://github.com/Esri/arcgis-runtime-samples-android?files=1
Did you configure the locator on line 238 to point to your own locator service?
(a.k.a., the R.string.geocode_url)?
No, I did not, actually. I will check that. Thanks
I am not entirely sure if that will resolve the issue but I imagine that the stops are not being located and not being added to the "stops" object.
Thank you so much! That is exactly what was wrong with it. We had been working on it for so long. We appreciate it.
If that resolved your issue would you go ahead and mark that answer as correct?
Thank you!
Okay, how do i do that?
Figured it out, thanks.