decode: Decode Valhalla Route Shape

Description Usage Arguments Details Value

View source: R/valhalla.R

Description

For point-to-point routing, Valhalla's API provides a route shapefile in a special ASCII-encoded format. This function takes an encoded string, decodes it, and returns the lat/lon coordinates as a tibble.

Usage

1
decode(encoded)

Arguments

encoded

An encoded shapefile in ASCII format from Valhalla's API.

Details

To map the results, see also valhallr::map_trip().

Value

A tibble containing point locations in lat and lon columns.


valhallr documentation built on March 9, 2021, 9:09 a.m.