Skip to content

Commit fb54072

Browse files
authored
Merge pull request #177 from Project-OSRM/depart-distance
add depart with distance
2 parents 7baf2ec + 1e48f58 commit fb54072

21 files changed

+59
-21
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file. For change
55

66
- Added a `formatToken` option to `compile`, `getWayName`, and `tokenize` that allows you to manipulate any token value after any grammar or capitalization rules are applied but before the value is inserted into the instruction. [#170](https://github.com/Project-OSRM/osrm-text-instructions/pull/170)
77
- Removed the `options` parameter to this module, including the `tokenizedInstruction` hook. Use the `formatToken` option instead. [#170](https://github.com/Project-OSRM/osrm-text-instructions/pull/170)
8+
- Added `namedistance` option to the depart instructions and added tests for `namedistance` in depart and continue instructions. Some typo fixes. [#177](https://github.com/Project-OSRM/osrm-text-instructions/pull/177#discussion_r145279715)
89

910
## 0.9.0 2017-10-05
1011

languages/translations/de.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@
125125
"depart": {
126126
"default": {
127127
"default": "Fahren Sie Richtung {direction}",
128-
"name": "Fahren Sie Richtung {direction} auf {way_name}"
128+
"name": "Fahren Sie Richtung {direction} auf {way_name}",
129+
"namedistance": "Head {direction} on {way_name} for {distance}"
129130
}
130131
},
131132
"end of road": {

languages/translations/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@
125125
"depart": {
126126
"default": {
127127
"default": "Head {direction}",
128-
"name": "Head {direction} on {way_name}"
128+
"name": "Head {direction} on {way_name}",
129+
"namedistance": "Head {direction} on {way_name} for {distance}"
129130
}
130131
},
131132
"end of road": {

languages/translations/eo.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@
125125
"depart": {
126126
"default": {
127127
"default": "Direktiĝu {direction}",
128-
"name": "Direktiĝu {direction} al {way_name}"
128+
"name": "Direktiĝu {direction} al {way_name}",
129+
"namedistance": "Head {direction} on {way_name} for {distance}"
129130
}
130131
},
131132
"end of road": {

languages/translations/es-ES.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@
125125
"depart": {
126126
"default": {
127127
"default": "Dirígete al {direction}",
128-
"name": "Dirígete al {direction} por {way_name}"
128+
"name": "Dirígete al {direction} por {way_name}",
129+
"namedistance": "Head {direction} on {way_name} for {distance}"
129130
}
130131
},
131132
"end of road": {

languages/translations/es.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@
125125
"depart": {
126126
"default": {
127127
"default": "Ve a {direction}",
128-
"name": "Ve a {direction} en {way_name}"
128+
"name": "Ve a {direction} en {way_name}",
129+
"namedistance": "Head {direction} on {way_name} for {distance}"
129130
}
130131
},
131132
"end of road": {

languages/translations/fr.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@
125125
"depart": {
126126
"default": {
127127
"default": "Rouler vers {direction}",
128-
"name": "Rouler vers {direction} sur {way_name}"
128+
"name": "Rouler vers {direction} sur {way_name}",
129+
"namedistance": "Head {direction} on {way_name} for {distance}"
129130
}
130131
},
131132
"end of road": {

languages/translations/id.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@
125125
"depart": {
126126
"default": {
127127
"default": "Arah {direction}",
128-
"name": "Arah {direction} di {way_name}"
128+
"name": "Arah {direction} di {way_name}",
129+
"namedistance": "Head {direction} on {way_name} for {distance}"
129130
}
130131
},
131132
"end of road": {

languages/translations/it.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@
125125
"depart": {
126126
"default": {
127127
"default": "Continua verso {direction}",
128-
"name": "Continua verso {direction} in {way_name}"
128+
"name": "Continua verso {direction} in {way_name}",
129+
"namedistance": "Head {direction} on {way_name} for {distance}"
129130
}
130131
},
131132
"end of road": {

languages/translations/nl.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@
125125
"depart": {
126126
"default": {
127127
"default": "Vertrek in {direction}elijke richting",
128-
"name": "Neem {way_name} in {direction}elijke richting"
128+
"name": "Neem {way_name} in {direction}elijke richting",
129+
"namedistance": "Head {direction} on {way_name} for {distance}"
129130
}
130131
},
131132
"end of road": {

0 commit comments

Comments
 (0)