Skip to contents

Converts a data.frame with road OSM id's and respective speeds to a Java Map<Long, Float> for use by r5r_network.

Usage

dt_to_speed_map(dt)

Arguments

dt

data.frame/data.table. Table specifying the speed modifications. The table must contain columns osm_id and max_speed.

Value

A speedMap (Java HashMap<Long, Float>)

See also

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