Skip to content
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

Is it possible to get isochrones from R5? #328

Closed
EvandroStk9 opened this issue Mar 15, 2023 · 8 comments
Closed

Is it possible to get isochrones from R5? #328

EvandroStk9 opened this issue Mar 15, 2023 · 8 comments

Comments

@EvandroStk9
Copy link

Hello everyone,

I'm trying to get isochrones from r5r outputs. I've seen this tutorial here on the Porto Alegre Data. However, I have some doubts on how could I get an isochrone of an specific trip duration from an specific point of interest.

Is it possible to get isochrones directly from a R5 call? Or is it mandatory to get a result from a grid settled up by the user in a travel time matrix and then operate an interpolation procedure? Or, at least, is it possible to retrieve the smooth polygon created by the geom_contour_filled as an sf or an dataframe object?

Thanks!

@rafapereirabr
Copy link
Member

Hi @EvandroStk9 . This issue is related to #123 . We have developed this isochrone() function. You can use it as a separate function, but it has not been implemented in r5r yet. Please let us know if you find any issues in this function or if yuo have any suggestions on how to improve it.

@EvandroStk9
Copy link
Author

Thank you for the quick and kind answer @rafapereirabr. I tried on using the function and worked beautifully.

I will use it more and I'll let you know of any other doubts or possible improvements. Congratulations for this amazing r5r project!

@ichsan2895
Copy link

Tested it, so far is good despite a little bit slow.
Maybe reduce sample size in here, it will be faster

sample_size <- ifelse(nrow(destinations) < 10000, 1, .33) #

@rafapereirabr
Copy link
Member

rafapereirabr commented Mar 22, 2023

Hi Hi @ichsan2895 . Please read this answer from the dialogue above.

Hi @EvandroStk9 . This issue is related to #123 . We have developed this isochrone() function. You can use it as a separate function, but it has not been implemented in r5r yet. Please let us know if you find any issues in this function or if yuo have any suggestions on how to improve it.

@ichsan2895
Copy link

Hi Hi @ichsan2895 . Please read this answer from the dialogue above.

Hi @EvandroStk9 . This issue is related to #123 . We have developed this isochrone() function. You can use it as a separate function, but it has not been implemented in r5r yet. Please let us know if you find any issues in this function or if yuo have any suggestions on how to improve it.

Hello, thanks for that information, I already tested it already and it works :)
My suggestion on how improve it, we can specify the sample size from isochrone function. I think... The lower it is, it will be faster despite reducing the accuracy of detail.

@rafapereirabr
Copy link
Member

Ah, sure. Yes, we can add a sample parameter so that the user can set the sample size with the number of nodes/destinations to query.

@rafapereirabr
Copy link
Member

rafapereirabr commented Jun 4, 2023

New isochrone function added to dev version in #7f50df1.

@rafapereirabr
Copy link
Member

We'll continue the discussion of an isochrone function in issue #123.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants