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

org.opentripplanner.transit.model.site.Entrance Maven / Gradle / Ivy

There is a newer version: 2.6.0
Show newest version
package org.opentripplanner.transit.model.site;

import java.util.Objects;
import javax.annotation.Nonnull;
import org.opentripplanner.transit.model.framework.FeedScopedId;

/**
 * A place where a station connects to the street network. Equivalent to GTFS stop location .
 */
public final class Entrance extends StationElement {

  Entrance(EntranceBuilder builder) {
    super(builder);
    // Verify coordinate is not null
    Objects.requireNonNull(getCoordinate());
  }

  public static EntranceBuilder of(FeedScopedId id) {
    return new EntranceBuilder(id);
  }

  @Override
  @Nonnull
  public EntranceBuilder copy() {
    return new EntranceBuilder(this);
  }

  @Override
  public boolean sameAs(@Nonnull Entrance other) {
    return super.sameAs(other);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy