spstreets / gtfs_manager

A GUI for viewing and editing GTFS data
MIT License
30 stars 3 forks source link

Filtering trips #13

Open maxwell8888 opened 2 years ago

maxwell8888 commented 2 years ago

OLD: Provide functionality to filter which trips to have in the list, which makes it easier to navigate to certain trips, and display certain trips on the map.

NEW: The filtered items will be displayed on the map, not the list. This is because the map will be the main point of user interaction and is much easier for users to discover/identify a range of different items.

Might also want to use the filter as a condition for certain analysis, but this is probably a much more advanced feature that would only happen in the future.

How to display each type of filter (for each type of item where applicable)

Trips that run on a certain day or at a specific point in time

Simply show all trips on map. Want to know eg specifically what Stops are being used at that point? Can instantly see this on the map. Want to know eg specifically what Agencies or Routes are running at that point? No direct support for now, just click the different trips to find out.

Deleted Agencies/Routes/Trips

To display/identify only deleted items which eg include an agency, a stop, and a stop_time. Can simply show all of the Agencies trips on the map, but this will not make clear that an agency has been deleted vs a number of stops. Maybe the map is used to get an overview and geographic sense, and provide a separate list the same as edited below to detail the actual items which have been deleted

Not Deleted Agencies/Routes/Trips

To display/identify only not deleted items which eg include an agency, a stop, and a stop_time. Can simply show all of the Agencies trips on the map, but this will not make clear that an agency has been deleted vs a number of stops. Maybe the map is used to get an overview and geographic sense, and provide a separate list the same as edited below to detail the actual items which have been deleted

Edited Agencies/Routes/Trips

To display/identify only edited items which eg include an agency, a stop, and a stop_time. How to display all these distinctly on the map? Not possible? Just have a separate list of items which can be of different types, with each widget showing minimal info but are clickable to reveal the item on the list and map?

Types of filter examples

  1. Trips that run on a certain day
  2. Trips that are running at a specific point in time
  3. Deleted Agencies/Routes/Trips
  4. Not deleted Agencies/Routes/Trips
  5. Edited Agencies/Routes/Trips/StopTimes/Stops
  6. The trips required to make a journey between two stops
  7. Manually specify trips, eg only the trips involved in a proposal or piece of analysis
  8. Agencies/Routes/Trips which use a certain stop
  9. All trips for given agency(s)/route(s)
Robinlovelace commented 2 years ago

This is the most important one I can think of, a priority that is emminently doable right?

maxwell8888 commented 2 years ago

Yes very dobable, I'll change the milestone to MVP.

Robinlovelace commented 2 years ago

I think all the examples you list are important, not sure which one most, would be good to speak to practitioners on that but the order seems reasonable. Let us know when this is good to test drive and we'll give it a spin!