I am trying to plot an isochrone map based on the locations of some convenience stores. Been searching on different methods (and I'm open to changing it) but for now I am working with dodgr.
q = opq(bbox = c(-103.78,19.2, -103.65, 19.31 )) %>%
add_osm_feature(key = "highway")
osm_sc <- osmdata_sc(q = q)
I am not sure on how to share the points layer but it is a class sf
class(kiosko_sf) [1] "sf" "data.frame"
graph_motorcar <- weight_streetnet(osm_sc, wt_profile = "motorcar")
tlim <- c (5, 10, 20, 30, 60) * 60
x <- dodgr_isochrones (graph_motorcar, from = kiosko_sf, tlim)
I am pretty sure my mistake is with that layer, as I don't fully understand what type of object should be passed to the from argument. I get the following error:
Error in get_pts_index(graph, gr_cols, vert_map, pts) : Unable to determine geographical coordinates in from/to
How could I fix this? or could you recommend an alternative to using dodgr_isochrones?