You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 product with the following fields:
{type: 'product',// requiredid: '123456',// requiredname: 'Métro',// requiredmode: 'train',// see the current list on modes, requiredsubMode: 'subway',// see my proposal below, optionalscope: 'urban',// see my proposal below, optionalstoppingPattern: 'all_stops'// see my proposal below, optional}
Add a new required field line.product and optional fields route.product, schedule.product and leg.product (plus probably trip.product, see trips, schedules and legs in fptf 2 #61) which would override the product specified by the corresponding line/route/trip pretty similar to the current mode overriding mechanism.
Discuss whether to keep mode on the FPTF types mentioned above as it could lead to inconsistence between mode and product.mode, but at least marking it as optional or even deprecated.
Discuss the different values for subMode which should depend on the specified value for mode. 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.scope would allow the values urban, local, regional, national, international to specify the area served by the public transport service
product.stoppingPattern to 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).
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
modeandsubMode.Currently,
modecan have its value from a very short list (about 9 different values), which already enables a first differentiation between different public transport types such astrainorbus. There is also the already reserved fieldsubModewhich should allow a more fine-grained distinction between e.g.tramorsubway, 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:
I wanted to present my idea about how we could include both pieces of information to FPTF.
productwith the following fields:Add a new required field
line.productand optional fieldsroute.product,schedule.productandleg.product(plus probablytrip.product, see trips, schedules and legs in fptf 2 #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_stopproduct.subMode,product.scopeandproduct.stoppingPatternare explicitly marked as optional and should only be specified if there is no ambiguousness.product.namewould 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 aproductdirectly.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).