org.opentripplanner.transit.model.site.Entrance Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
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