mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 00:39:58 +00:00
Navitia: Do not add leg if its duration is 0.
This commit is contained in:
parent
4fe662d021
commit
335651ce5c
1 changed files with 4 additions and 0 deletions
|
@ -457,6 +457,10 @@ public abstract class AbstractNavitiaProvider extends AbstractNetworkProvider
|
|||
{
|
||||
case CROW_FLY:
|
||||
{
|
||||
// Return null leg if duration is 0.
|
||||
if (legInfo.min == 0)
|
||||
return null;
|
||||
|
||||
// Build type.
|
||||
final Individual.Type individualType = Individual.Type.WALK;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue