Meaning of queryDepartures param 'equivs'?

32 views
Skip to first unread message

Holger Bruch

unread,
Jul 29, 2018, 2:05:45 PM7/29/18
to public-transport-enabler-discuss
Hi all,

what exactly is the meaning of NetworkProvider.queryDepartures' boolean parameter equivs, i.e. what is an equivalent station?
If set to true, should all departures of all stops of the requested stop's parent station be returned?
I assume each platform of the parent station/stop cluster should be treated as a proper Location, shouldn't it?

Thx,
Holger




Andreas Schildbach

unread,
Jul 29, 2018, 4:28:07 PM7/29/18
to public-transport...@googlegroups.com
An equivalent station is a station so close to the requested station
that it can be used instead.

Often the main stations are separated into sections (e.g. Munich
north/south or Berlin up/down), and then you also have a Subway stop in
the same building. Those stations are usually equivalent to each other.

(I don't know the exact Hafas definition though.)
> --
> You received this message because you are subscribed to the Google
> Groups "public-transport-enabler-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
> public-transport-enabl...@googlegroups.com
> <mailto:public-transport-enabl...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

Holger Bruch

unread,
Aug 1, 2018, 6:04:47 AM8/1/18
to public-transport-enabler-discuss
Ok, thanks. For OpenTripPlanner, that should be all stops in the stop's cluster then.

OTP currently has two alternative options to cluster stops: 'parentStation' (relying on appropriate GTFS data) and 'proximity' (stops closer than 400m and equal name (after some network dependent normalization)).

Should, for a usual bus stop with individual locations for both directions, equiv=false return departures for the requested location or both directions?

Andreas Schildbach

unread,
Aug 1, 2018, 12:28:06 PM8/1/18
to public-transport...@googlegroups.com


On 08/01/2018 12:04 PM, Holger Bruch wrote:
> Ok, thanks. For OpenTripPlanner, that should be all stops in the stop's
> cluster then.
>
> OTP currently has two alternative options to cluster stops:
> 'parentStation' (relying on appropriate GTFS data) and 'proximity
> <https://github.com/opentripplanner/OpenTripPlanner/blob/1fbcee8f1e62d3be61d127a8e7a92c5a376b8b0c/src/main/java/org/opentripplanner/routing/graph/GraphIndex.java#L581>'
> (stops closer than 400m and equal name (after some network dependent
> normalization)).
>
> Should, for a usual bus stop with individual locations for both
> directions, equiv=false return departures for the requested location or
> both directions?

Equivs (in the Hafas meaning) doesn't cover single stations/stops with
multiple (usually 2) masts. So equiv true or false wouldn't make any
difference.

Reply all
Reply to author
Forward
0 new messages