Learn R Programming

flexpolyline (version 0.3.0)

decode: Decode a flexible polyline encoded string

Description

This function calls hf::polyline_decode and hf::get_third_dimension of the C++ implementation of the flexible polyline encoding by HERE. Depending on the dimensions of the encoded line, a two or three dimensional line is decoded.

Usage

decode(encoded)

Value

A matrix containing the coordinates of the decoded line.

Arguments

encoded

character, encoded flexible polyline string.

Examples

Run this code
# 2d line
decode("BFoz5xJ67i1B1B7PzIhaxL7Y")

# 3d line
decode("BlBoz5xJ67i1BU1B7PUzIhaUxL7YU")

Run the code above in your browser using DataLab