mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 00:39:58 +00:00
Navitia: Fix queryDepartures() for stop_area when equivs is set to true.
This commit is contained in:
parent
0267c655bf
commit
3e92246ff8
2 changed files with 31 additions and 2 deletions
|
@ -854,8 +854,16 @@ public abstract class AbstractNavitiaProvider extends AbstractNetworkProvider
|
|||
queryUri.append(uri());
|
||||
if (equivs)
|
||||
{
|
||||
final String stopAreaId = getStopAreaId(stationId);
|
||||
queryUri.append("stop_areas/" + stopAreaId + "/");
|
||||
final String header = stationId.substring(0, stationId.indexOf(":"));
|
||||
if (header.equals("stop_point"))
|
||||
{
|
||||
final String stopAreaId = getStopAreaId(stationId);
|
||||
queryUri.append("stop_areas/" + stopAreaId + "/");
|
||||
}
|
||||
else if (header.equals("stop_area"))
|
||||
{
|
||||
queryUri.append("stop_areas/" + stationId + "/");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue