ffwdme.js is a JavaScript toolkit that aims to bring interactive GPS driving directions to the mobile browser.
ffwdme.initialize(/*config*/);
ffwdme.on('routecalculation:success', function(response) {
ffwdme.navigation.setRoute(response.route).start();
});
ffwdme.on('geoposition:ready', function() {
var route = new ffwdme.routingService({
dest: { lat: 49.9, lng: 8.9 }
}).fetch();
});
ffwdme.on('navigation:onroute', function(e) {
var distance = e.navInfo.distanceToDestination;
console.info('You have ' + distance + ' meters to go!');
});