Plan_my_route is a project mainly written in JAVASCRIPT and RUBY, it's free.
Playing around with a fully client-side version of http://plan-my-route.com