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.


chris31415926535/valhallr documentation built on Jan. 31, 2022, 8:57 a.m.