CUTR-at-USF / ontime-performance-calculator

An application to calculate on-time performance using archived GTFS-realtime data
Other
4 stars 2 forks source link

Populating closest_to_stop field in database #18

Closed mohangandhiGH closed 7 years ago

mohangandhiGH commented 7 years ago

Closest_to_stop is true (1), if closest_stop_id of all the same closest_stop_id's for a particular trip on a day of service is the closest else false (0).

image

In the image shown, there are 5 same closest_stop_id's for a trip 192226 on a day 10/18/2016. We populate closest_to_stop with 1 for closest of all closest_stop_id's (we can find the closest of all, from distance_to_stop field) or else with 0.