I'm working with transportation network dataset and I want to import traffic speed data provided as JSON format.
I could read the data in R using read.scorata(). However, I couldn't covert it to a spatial dataframe to be used for further analysis. There is one field in the current dataframe which is encoded polyline. How can I convert using this field?
library(RSocrata)
#Loading only two rows for easy reproduction
Test_TSD <- read.socrata("https://data.cityofnewyork.us/resource/i4gi-tjb9.json?borough=Manhattan&id=225")