decode: Decode a flexible polyline encoded string

View source: R/RcppExports.R

decodeR Documentation

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)

Arguments

encoded

character, encoded flexible polyline string.

Value

A matrix containing the coordinates of the decoded line.

Examples

# 2d line
decode("BFoz5xJ67i1B1B7PzIhaxL7Y")

# 3d line
decode("BlBoz5xJ67i1BU1B7PUzIhaUxL7YU")

flexpolyline documentation built on Feb. 16, 2023, 7:42 p.m.