Directions dijit 'click on the map'

3395
1
07-16-2014 04:38 PM
ICZEMICZEM
New Contributor

Hello everybody!

We're making web application for Belarus with our own routing service and geocoder. Directions dijit suits fine but there's a problem: we have address data for cities and most towns but user probably can click any point on the map. If this point doesn't have correspondent address (somewhere in the woods for example) it can't be added as Directions dijit stop. Just like in this example: http://johngravois.com/maps/directions-click.html

So I wonder if there's a way to translate clicked points to stops by coordinates without geocoding, any point on the map?

Thanks!

0 Kudos
1 Reply
JohnGravois
Frequent Contributor

if you don't want to geocode, it might be a better idea for you to wire up your own RouteTask and pass the stops based on the mapPoint returned by the map 'click' event instead of trying to use the widget...

check out this sample for an example:

Find routes with barriers and multiple stops | ArcGIS API for JavaScript

0 Kudos