Fix directions for roundabout without exit number

Closes #1756
This commit is contained in:
Jamie Guthrie 2018-02-15 09:53:00 +00:00 committed by Tom Hughes
parent 09900654e6
commit 4a9f20a485
2 changed files with 6 additions and 2 deletions

View file

@ -111,7 +111,11 @@ function OSRMEngine() {
}
if (step.maneuver.type.match(/rotary|roundabout/)) {
instText += I18n.t(template + '_with_exit', { exit: step.maneuver.exit, name: name } );
if (step.maneuver.exit) {
instText += I18n.t(template + '_with_exit', { exit: step.maneuver.exit, name: name } );
} else {
instText += I18n.t(template + '_without_exit', { name: name } );
}
} else if (step.maneuver.type.match(/on ramp|off ramp/)) {
if (step.destinations) {
if (namedRoad) {