Select to view content in your preferred language

Web AppBuilder Directions not working with local Geocoder

2990
13
09-26-2016 07:38 AM
JeffPace
MVP Alum

I am trying to configure the directions widget in the WAB.  Works fine with locally hosted services.  When I switch the geocoder to a locally hosted one, it stops working

1. Locations are returning coordinates instead of addresses, even though an address is returned in firebug (same as Defect ID: BUG-000084635 which was marked as fixed but does not appear to be)

2. Locations are then greyed out and "Unable to route to these addresses"

Any ideas?

khutchins-esristaff

Tags (1)
0 Kudos
13 Replies
JeffPace
MVP Alum

I added some code

https://jsbin.com/laruyoture/edit?html,output

This should show you how to access the route object and stop objects from the routeResult once it returns.

https://developers.arcgis.com/javascript/3/jsapi/routeresult-amd.html

 

benchikh
New Contributor III

Many thanks I have already solved the issue but thanks for your help!

I will market it as a solution anyway.

I have another question, is there anyway to save the routes itinerary on a database or on server ... and give the user the ability to load it again.

Many thanks

0 Kudos
JeffPace
MVP Alum

I use it in our public app in the jsapi and it works since your fix at version 3.15(?).  

0 Kudos
JeffPace
MVP Alum

dlaw-esristaff‌ this is where i originally reported it.