gh_spt_as_linestrings_sf: Build lines from a gh spt object

Description Usage Arguments Examples

View source: R/spt-endpoint.R

Description

Build lines from a gh spt object

Usage

1

Arguments

data

A gh_spt object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
if (FALSE) {
  start_point <- c(52.53961, 13.36487)

  columns <- gh_spt_columns(
    prev_longitude = TRUE,
    prev_latitude = TRUE,
    prev_time = TRUE
  )

  lines_sf <- gh_get_spt(start_point, time_limit = 180, columns = columns) %>%
    gh_spt_as_linestrings_sf()
}

graphhopper documentation built on Feb. 6, 2021, 5:05 p.m.