vlarmet / cppRouting

Algorithms for Routing and Solving the Traffic Assignment Problem
109 stars 9 forks source link

Data_preprocessing do not output coordinates.csv file #3

Closed JacobusS closed 3 years ago

JacobusS commented 3 years ago

Hi, I was able to create roads.scv file from my own network. however how do I create a coordinates.csv file?

Fantastic library by the way.

JacobusS commented 3 years ago

Figured it out, just export the ptstotcoord as a dataframe

ptstotcoord_export <- as.data.frame(ptstotcoord) %>% select(ID, X, Y)

write.csv(ptstotcoord_export, 'FILE_LOCATION')