dabreegster / odjitter

Disaggregate zone-based origin/destination data to specific points
Apache License 2.0
12 stars 6 forks source link

Fixed destination in R + distance decay subset function #53

Open temospena opened 5 months ago

temospena commented 5 months ago

Hi all!

I was wondering how to use odjittering in R with a fixed destination and random origins. Possible applications: Travel to school, to hospital, to bike shop, etc. I have some roundabout way of doing this, such as creating a small polygon for the destination, but maybe that is not the most efficient way to do it :D So, maybe providing a single fixed point could be the way. @Robinlovelace , did you do this for Ireland?

An extra layer of this problem would be to apply on-the-fly a distance decay function, so that the random sub-points closer to the destination would have a higher probability to be selected than the random sub-points far away from the destination. I think that this option makes sense when having a single fixed destination, but probably there are other uses for it.

What are your thoughts about this? It this another R pkg function, or options to include in the existing one?