Learn R Programming

valhallr (version 0.1.0)

decode: Decode Valhalla Route Shape

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

decode(encoded)

Arguments

encoded

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

Value

A tibble containing point locations in lat and lon columns.

Details

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