Retrieving route location via mouse click - how?

Discussion created by evtguy on Jul 5, 2012
Latest reply on Dec 20, 2012 by ciava.at
Not sure what the best way to accomplish this via the API. Let's say I have a routed layer of roads or stream network. I want to return the milepost location (or River Mile) at the map location that the user clicks on.

Can I extract this information using the Identify task or do I need to use the esri.tasks.RouteTask option? The code snippits and examples seem more focused on connecting two locations together on a network rather than identifying a single location.