Skip to content

Add station type attribute for stations #27

@elliottwilliams

Description

@elliottwilliams

As a transit rider who occasionaly has to wait 10-15 minutes to catch a bus, I prefer it when I can wait at a shelter with a bench. During inclement weather, it's doubly essential to me. Proper Shark should show me what kind of station a particular stop is, be it a shelter, a sidewalk, or a transfer hub.

I propose adding a kind enum attribute to Station, which derives its possible values from object configuration. For CityBus, the kinds would be :roadsign, :shelter, and :transfer_hub, unless there are some more standardized terms for these that I'm missing.

By default, Stations would be configured to be kind = :roadsign. :shelter can be determined by the station name, probably using the same middleware from #23, and :transfer_hub can be configured to the station with stop code BUS215.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions