decode {valhallr}R Documentation

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.

Details

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

Value

A tibble containing point locations in lat and lon columns.


[Package valhallr version 0.1.0 Index]