Skip to content

Commit

Permalink
GBFS: Use station parking if no geofencing zones defined (#735)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablohoch authored Feb 13, 2025
1 parent 361821a commit f7eede8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gbfs/osr_mapping.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ struct osr_mapping {
break;
}

if (prod.known_return_constraint_ &&
prod.return_constraint_ == return_constraint::kAnyStation) {
if (prod.return_constraint_ == return_constraint::kAnyStation &&
(prod.known_return_constraint_ ||
provider_.geofencing_zones_.zones_.empty())) {
default_restrictions.station_parking_ = true;
}

Expand Down

0 comments on commit f7eede8

Please sign in to comment.