Hussein-Mahfouz / drt-potential

3 stars 0 forks source link

4 calculate travel demand actual travel patterns between zones #14

Closed Hussein-Mahfouz closed 6 months ago

Hussein-Mahfouz commented 7 months ago
  1. We identify the OD pairs served by each unique trip
  2. Calculate potential demand on a trip by aggregating values from OD pairs that are served by said trip (as identified in step 1)
  3. This should work with any dataset that has travel demand at an OD level
Hussein-Mahfouz commented 7 months ago

Speed up would be useful for this function https://github.com/Hussein-Mahfouz/drt-potential/blob/2a85386a67ba48265075c15a69f75ec2fe7f3eec/R/trips_to_zone_pairs.R#L116-L128

I should try turning the list() object to a vector with pre-allocated size

Hussein-Mahfouz commented 7 months ago

I'm getting some NA values with the "Origin" and "Destination" columns in the output of gtfs_trips_od_coverage(). This is because some buses go through zones outside the study area, so the stops are not joined onto any OA. This isn't really a problem, but I can either:

I think (c) is the way to go, but might do (a) for now