Ontario city centre network sample data for Ottawa and Toronto, in long/lat WGS84
data(ottawacentre) data(torontocentre)
Objects of class SpatialLinesDataFrame that contain as attribution amonst others
numeric; indicating link direction: 0 two-way, 1 one-way down-link, -1 one-way up-link
Distributed under the Ontario Open Data Licence (https://www.ontario.ca/page/open-government-licence-ontario)
library(sp) data(ottawacentre) oc = SpatialNetwork(ottawacentre, direction = ottawacentre$DIRECTION_) plot(oc)points(oc)data(torontocentre) tc = SpatialNetwork(torontocentre, direction = torontocentre$DIRECTION_) plot(tc, arrow_size = .5)points(tc)