Skip to content

Commit

Permalink
fix #55
Browse files Browse the repository at this point in the history
  • Loading branch information
walkerke committed Sep 20, 2024
1 parent 9e00a3b commit 3ca414b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: mapboxapi
Type: Package
Title: R Interface to 'Mapbox' Web Services
Date: 2024-09-06
Date: 2024-09-20
Version: 0.6.2
Authors@R:
c(person(given = "Kyle", family = "Walker", email = "[email protected]",
Expand Down
3 changes: 3 additions & 0 deletions R/navigation.R
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,9 @@ mb_matrix <- function(origins,
if (!is.null(destinations)) {
end <- length(origins) - 1
origin_ix <- paste0(0:end, collapse = ";")

origin_end <- length(origins) - 1

if ("data.frame" %in% class(destinations)) {
if (length(destinations) == 1) {
destination_ix <- origin_end + 1
Expand Down

0 comments on commit 3ca414b

Please sign in to comment.