-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
strange behavior of function example transit_network_to_sf()
#192
Comments
Those are the stops that R5 couldn't link to the street network, because the sample I think I forgot to talk to you about this, to find a solution. We can just drop those observations, but I didn't do it yet because it can cause some problems in the future if we decide to include |
In this case, we agreed we should keep all observations in the output. @dhersz will impute |
I've also noticed that the function returns some duplicated routes. See:
|
Those are actually routes with the same library(r5r)
# build transport network
path <- system.file("extdata/poa", package = "r5r")
r5r_core <- setup_r5(data_path = path)
# extract transit network from r5r_core
transit_net <- transit_network_to_sf(r5r_core)
r <- subset(transit$routes, short_name == 149)
r$id <- c(1, 2)
mapview(r, zcol = "id") But R5 drops the |
Oh, I see. In this case it would indeed make sense to include the |
@mvpsaraiva is it possible to include the |
I have just update the code to impute NA spatial coordinates to 'problematic' stops. |
Actually no, because R5 drops the And I think it's easier to do this in R, via data.table. |
Oh, Ok. In this case, I think it would be best to leave it as it is. Creating a "mock" I've added some info in the documentation to keep a record of this.
|
The example presented in the function
transit_network_to_sf()
return some stops with wrong spatial coordinates.The text was updated successfully, but these errors were encountered: