Displaying Routes - Using JXMapKit
I'm using swingx-ws library to display the map component of my project (a desktop application, using Swing). As one of the requirements, I need to display Routes on the maps. The routes need to be shown as real routes and not just straight lines connecting two points (which would be far easy to implement).
Is there any library/source which calculates the route and gives a set of waypoints, given the start and end point as lat/lon pair?
I use OpenStreetMaps as the map provider.
Any clues will be greatly appreciated.
Thanks in advance.