Skip to content

Commit 6c5290b

Browse files
committed
Update readme
1 parent ffb1ee4 commit 6c5290b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ parameter | required? | values | description
4545
key | type | description
4646
----|----|----
4747
`legCount` | integer | Number of legs in the route
48-
`legIndex` | integer | Zero-based index of the leg containing the step; together with `legIndex`, this option determines whether an arrival instruction indicates which waypoint the user has arrived at
48+
`legIndex` | integer | Zero-based index of the leg containing the step; together with `legCount`, this option determines which waypoint the user has arrived at
4949
`formatToken` | function | Function that formats the given token value after grammaticalization and capitalization but before the value is inserted into the instruction string; useful for wrapping tokens in markup
50+
`waypointName` | string | Optional custom name for the leg's destination, replaces `"your {nth} destination"`
5051

5152
`formatToken` takes two parameters:
5253

0 commit comments

Comments
 (0)