luukvdmeer / sfnetworks

Tidy Geospatial Networks in R
https://luukvdmeer.github.io/sfnetworks/
Other
347 stars 20 forks source link

Attach units to cost matrix #119

Closed luukvdmeer closed 2 years ago

luukvdmeer commented 3 years ago

When you run sf::st_distance, the resulting distance matrix has units associated with in (most commonly meters). The sfnetworks equivalent st_network_cost does not have this. If the given weights have units, it might make sense that the resulting cost matrix has the same units attached to it.

luukvdmeer commented 2 years ago

Implemented in v0.6.0, see https://luukvdmeer.github.io/sfnetworks/articles/sfn04_routing.html#retrieving-an-od-cost-matrix