+ } else if (step.maneuver.type.match(/on ramp|off ramp/)) {
+ if (step.destinations) {
+ if (namedRoad) {
+ instText += I18n.t(template + '_with_name_and_directions', { name: name, directions: destinations } );
+ } else {
+ instText += I18n.t(template + '_with_directions', { directions: destinations } );
+ }
+ } else {
+ if (namedRoad) {
+ instText += I18n.t(template + '_without_exit', { name: name });
+ } else {
+ instText += I18n.t(template + '_without_directions');
+ }
+ }