Summary: Need to calculate distances rather than directions? That's also easy with tha maps Javascript API