=BG= more robust way of handling optional parameters, including graceful...

=BG= more robust way of handling optional parameters, including gracefully degradation for backward compatibility, for the directions API