All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.routing.vehicle_parking.VehicleParkingGroupBuilder Maven / Gradle / Ivy

package org.opentripplanner.routing.vehicle_parking;

import org.opentripplanner.transit.model.basic.I18NString;
import org.opentripplanner.transit.model.basic.WgsCoordinate;
import org.opentripplanner.transit.model.framework.FeedScopedId;

public class VehicleParkingGroupBuilder {

  FeedScopedId id;
  I18NString name;
  WgsCoordinate coordinate;

  VehicleParkingGroupBuilder(FeedScopedId id) {
    this.id = id;
  }

  /**
   * The name of this vehicle parking group, which may be translated when displaying to the user.
   */
  public VehicleParkingGroupBuilder withName(I18NString name) {
    this.name = name;
    return this;
  }

  /**
   * The coordinate of the vehicle parking group
   */
  public VehicleParkingGroupBuilder withCoordinate(WgsCoordinate coordinate) {
    this.coordinate = coordinate;
    return this;
  }

  public VehicleParkingGroup build() {
    return new VehicleParkingGroup(this);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy