Routing Sample: error routing routes created in arcmap

1599
10
Jump to solution
10-04-2016 06:48 PM
ThomasSaldana
New Contributor II

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: 

0 Kudos
1 Solution

Accepted Solutions
AlexanderNohe1
Occasional Contributor III

Did you configure the locator on line 238 to point to your own locator service?

(a.k.a., the R.string.geocode_url)?

View solution in original post

10 Replies
AlexanderNohe1
Occasional Contributor III

Where did you download the sample from?

0 Kudos
ThomasSaldana
New Contributor II

From here: https://github.com/Esri/arcgis-runtime-samples-android?files=1

0 Kudos
AlexanderNohe1
Occasional Contributor III

Did you configure the locator on line 238 to point to your own locator service?

(a.k.a., the R.string.geocode_url)?

ThomasSaldana
New Contributor II

No, I did not, actually. I will check that. Thanks

0 Kudos
AlexanderNohe1
Occasional Contributor III

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.

ThomasSaldana
New Contributor II

Thank you so much! That is exactly what was wrong with it. We had been working on it for so long.  We appreciate it. 

0 Kudos
AlexanderNohe1
Occasional Contributor III

thomassldn

If that resolved your issue would you go ahead and mark that answer as correct?

Thank you!

0 Kudos
ThomasSaldana
New Contributor II

Okay, how do i do that? 

0 Kudos
ThomasSaldana
New Contributor II

Figured it out, thanks.