 <p>With mapsforge you cannot do this. You have to use a routing library like graphhopper is one. See here how to use it: <a href="http://graphhopper.com/#developers" rel="nofollow">http://graphhopper.com/#developers</a>. </p> <p>But there are other offline and online routers as well. Have a look here: <a href="http://wiki.openstreetmap.org/wiki/Routing/offline_routers" rel="nofollow">http://wiki.openstreetmap.org/wiki/Routing/offline_routers</a> and here <a href="http://wiki.openstreetmap.org/wiki/Routing" rel="nofollow">http://wiki.openstreetmap.org/wiki/Routing</a></p>