Description Format Construction Fields Methods Note
Network class. For creating a road network etc.
R6::R6Class object inheriting from Environment<-Entity.
1 |
.data
A linestring sf data.
id_col
The name of the id column of .data
.
from_node
The name of the column that contains starting nodes.
to_node
The name of the column that contains terminating nodes.
dist
The name of the column that contains lengths or the distances of the edges.
Note that each row of the input data in .data
must contain a linestring
or a multilinestring feature which basically an edge of a graph.
NULL
'
get_dodgr_graph(ids)
() -> data.table::data.table()
Returns a dodgr graph of the Network. This is just a shorthand for
Network$get_data(name = "dodgr_graph)
.
Network has a DataBackendDataTable object named "dodgr_graph" that basically transform its attribute data into a dodgr graph object. This is particularlly useful for path finding applications etc.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.