dt_to_lts_map: data.table to ltsMap

View source: R/java_utils.R

dt_to_lts_mapR Documentation

data.table to ltsMap

Description

Converts a data.frame with road OSM id's and respective LTS levels a Java Map<Long, Integer> for use by r5r_network.

Usage

dt_to_lts_map(dt)

Arguments

dt

data.frame/data.table. Table specifying the LTS levels. The table must contain columns osm_id and lts.

Value

A speedMap (Java HashMap<Long, Integer>)

See Also

Other java support functions: dt_to_speed_map(), get_java_version(), java_to_dt()


r5r documentation built on Aug. 21, 2025, 5:44 p.m.