Entity selector allows you specify exactly which parts of the network this alert affects, so that we can display only the most appropriate alerts to the user. You may include multiple entity selectors for alerts which affect multiple entities.
Entities are selected using their GTFS identifiers, and you can select any of the following:
Entity selector allows you specify exactly which parts of the network this alert affects, so that we can display only the most appropriate alerts to the user. An entity selector containing multiple criteria applies only to the intersection of that criteria, i.e. if it specifies a route and a stop then the alert impacts service of that route at that stop. You may include multiple entity selectors for alerts which affect multiple entities.
Entities are selected using their GTFS identifiers, and you can select any of the following:
Be careful not to specify too many parameters as you might cancel out the alert: it will be accepted, but never shown. For example, if you define an alert for a stop AND a route, but the stop is not part of that specific route, the message may never be shown. Generally, be more generic than restrictive.> wbr>57f5064b107315173618894!
>
In general I would sometimes see the case of AND functionality
If the data must be linked to multiple entities of the same type (such as two stops), create two differentEntitySelectorfields (each with a uniquestop_id) for use as repeated values in theinformed_entityfield (in analert, for example). See more on this at Alert.
alert {
informed_entity {
agency_id: "1"
route_id: "5"
}
informed_entity {
agency_id: "1"
route_type: 4
}But given the current cardinality would it apply to GTFS?
agency, stop, route, and so on). Identify GTFS entities by using theEntitySelector field. Set the field values to correspond to the appropriate identifier fields in the GTFS feed. You must provide at least one GTFS entity identifier in the EntitySelector field. If you select several such fields, then the matching MUST apply to all the identifiers."+1 for
“
Adding examples of common alert scenarios would be helpful for both publishers and consumers.
For example,
How to report a stop out of service.
How to report a detour.
How to report alerts affecting a single route or group of routes.
How to report alerts affecting the subway or other modal system.
How to report system-wide alerts.
“
---
Ritesh Warade
From: gtfs-r...@googlegroups.com [mailto:gtfs-r...@googlegroups.com]
On Behalf Of webm...@rideschedules.com
Sent: Friday, October 28, 2016 6:20 PM
To: GTFS-realtime <gtfs-r...@googlegroups.com>
Subject: Re: [GTFS-realtime] EntitySelector documentation clarification
I am opposed to changing the documentation.
--
You received this message because you are subscribed to the Google Groups "GTFS-realtime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
gtfs-realtim...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/gtfs-realtime/30394574-30f4-488c-a26c-f127d1cb8bc4%40googlegroups.com.