ipeaGIT / r5r

https://ipeagit.github.io/r5r/
Other
177 stars 26 forks source link

general question to travel_time_matrix? and reverseSearch #291

Open LeLunZ opened 1 year ago

LeLunZ commented 1 year ago

Hello :)

i browsed through the actual R5 Repository and found out that there is a ReverseSearch attribute in the ProfileRequest.

Is it possible to use that attribute with the travel time matrix function?

For calculating the travel time as arrive by matrix and not departure by? With arrive by, I mean Instead of departing at a point, I want an isochrone where I can see how reachable the end point is. So from where (in how much time) I can go to the center of the isochrone.

LeLunZ commented 1 year ago

After talking with a colleague of mine, I have tried a thing.

I found this guide: https://cran.r-project.org/web/packages/r5r/vignettes/calculating_isochrones.html and I just reversed origin and destination points, which also gave me the result I wanted (I think)

The thing is instead of doing just one iterations, I know have N iterations :) which isn't that nice Would it be somehow possible to reverse edge direction? and do it with one iteration?

For more context: I would like to be able to get a isochrone for up to a 200 kilometer radius area (with max time of 120 minutes).

I actually first found the R5 analysis endpoint which gives me nice isochrones if I use the Header Accept: image/tiff

So, R5 can't do the reverse thing. That's when I found the R5R package. Is the travel_time_matrix function even the correct function if I want to do this for such a big area?

I would appreciate any help :)

rafapereirabr commented 1 year ago

Hi @LeLunZ . I'm sorry for my late reply. I'm not entirely certain yet, but I believe it might be possible to implement reverseSearch in r5r, so that users can input an arrial_time instead of a departure_time. We will be looking into this in the next few months. Please keep in mind this is not top priority at the moment, it might take some time before we are able to investigate this further

Torskelgen commented 1 year ago

Hi @rafapereirabr! Any worthwhile status update on using arrival_timeinstead of departure_time? And keep up with the amazing work you do with this package!

rafapereirabr commented 1 year ago

Hi @Torskelgen . Thanks for asking. We are currently prioritizing other issues, so it might take a few months before we can tackle this one. Sorry we have our hands tight at the moment. If you have any experience with Jave and feel like you could contribute with this, we would be glad to accept contributions.

Torskelgen commented 1 year ago

I'm afraid I don't have any experience with Java, otherwise I would have loved to contribute. And I do understand that you prioritize other issues.

rafapereirabr commented 4 months ago

If there are any potential contributors who know Java and who might want to have a look at this, we would appreciate PR from collaborators