Select to view content in your preferred language

Routing Sample: error routing routes created in arcmap

1896
10
Jump to solution
10-04-2016 06:48 PM
ThomasSaldana
Emerging Contributor

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
Honored Contributor

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
Honored Contributor

Where did you download the sample from?

0 Kudos
ThomasSaldana
Emerging Contributor

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

0 Kudos
AlexanderNohe1
Honored Contributor

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

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

ThomasSaldana
Emerging Contributor

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

0 Kudos
AlexanderNohe1
Honored Contributor

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
Emerging Contributor

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
Honored Contributor

thomassldn

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

Thank you!

0 Kudos
ThomasSaldana
Emerging Contributor

Okay, how do i do that? 

0 Kudos
ThomasSaldana
Emerging Contributor

Figured it out, thanks.