This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.
Using addPloyline() method of Map widget we can draw the lines from one point to another point. This method will just draw straight lie between two locations.
If you are looking for routes then you have to use the searchRoutes() MAP API and which will give you the routes between the start and end points. Using the result you can add a polyline on the map.