Continue discussion for public transport types and vehicles
#62 opened on Nov 3, 2018
Repository metrics
- Stars
- (139 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
Since we are now working on getting release 2.0.0 closer (see the checklist #37), I think it's time to continue the discussion which stopped about a year ago in #4 about mode and subMode.
Currently, mode can have its value from a very short list (about 9 different values), which already enables a first differentiation between different public transport types such as train or bus. There is also the already reserved field subMode which should allow a more fine-grained distinction between e.g. tram or subway, but there was no decision about the exact values.
As already pointed out by @derhuerst in #4, there are two main purposes of specifying more precisely the type of a public transport:
- There is the more-detailed, machine-readable field specifying the type of vehicle.
- And there is its name in its local public transport system.
I wanted to present my idea about how we could include both pieces of information to FPTF.
- Add a new item type
productwith the following fields:
{
type: 'product', // required
id: '123456', // required
name: 'Métro', // required
mode: 'train', // see the current list on modes, required
subMode: 'subway', // see my proposal below, optional
scope: 'urban', // see my proposal below, optional
stoppingPattern: 'all_stops' // see my proposal below, optional
}
-
Add a new required field
line.productand optional fieldsroute.product,schedule.productandleg.product(plus probablytrip.product, see #61) which would override theproductspecified by the correspondingline/route/trippretty similar to the currentmodeoverriding mechanism. -
Discuss whether to keep
modeon the FPTF types mentioned above as it could lead to inconsistence betweenmodeandproduct.mode, but at least marking it as optional or even deprecated. -
Discuss the different values for
subModewhich should depend on the specified value formode. I would propose the GTFS specification for extended route types as a starting point, but adapting it to the following point. -
To be able to provide a better machine-readable description, I wanted to add some of the ideas I already proposed quite a time ago for OSM tagging of public transport services (see the OSM-Wiki):
product.scopewould allow the valuesurban,local,regional,national,internationalto specify the area served by the public transport serviceproduct.stoppingPatternto express the frequency a public transport type stops:all_stops,limited,main_stops,non_stop
product.subMode, product.scope and product.stoppingPattern are explicitly marked as optional and should only be specified if there is no ambiguousness. product.name would serve for the public transport service name in its local public transport system whereas the other fields would allow a machine-readable distinction between them. As with other FPTF objects, it should be possible to reference or in-line a product directly.
As already mentioned, this is only a proposal and I'm very open to suggestions and comments (also regarding the names I've chosen for now).