public class PublicTransportStop extends Location<PublicTransportStop>
PublicTransportStop is used in two contexts: as from or to position
of a RouteSegment and as an intermediate stop. In the case of from /
to position it contains information relevant for the route, i.e. the
accessibility information is relevant for the the way along the route and not
necessarily valid for the whole station. In the latter case (as an
intermediate stop) the information can be interpreted more generally.
In its minimal form it does not contain any additional attributes, but just
the information that this Location is a public transport stop.
| Constructor and Description |
|---|
PublicTransportStop() |
| Modifier and Type | Method and Description |
|---|---|
static PublicTransportStop |
createMinimal(GeoJSONCoordinate position) |
boolean |
equals(Object obj) |
List<Constants.Accessibility> |
getAccessibility() |
Optional<String> |
getName() |
Optional<String> |
getPlatform() |
Map<String,Constants.DetailedModeOfTransportType> |
getRelatedLines() |
int |
hashCode() |
PublicTransportStop |
setAccessibility(List<Constants.Accessibility> accessibility) |
PublicTransportStop |
setName(String name) |
PublicTransportStop |
setPlatform(String platform) |
PublicTransportStop |
setRelatedLines(Map<String,Constants.DetailedModeOfTransportType> relatedLines) |
String |
toString() |
void |
validate()
Checks if the instance is in a valid / useful state.
|
getAdditionalInfo, getAddress, getComplexGeometry, getCoordinate, getSimpleCoordinate, setAdditionalInfo, setAddress, setComplexGeometry, setCoordinate, setCoordinatepublic Optional<String> getPlatform()
public Map<String,Constants.DetailedModeOfTransportType> getRelatedLines()
public List<Constants.Accessibility> getAccessibility()
public PublicTransportStop setName(String name)
public PublicTransportStop setPlatform(String platform)
public PublicTransportStop setRelatedLines(Map<String,Constants.DetailedModeOfTransportType> relatedLines)
public PublicTransportStop setAccessibility(List<Constants.Accessibility> accessibility)
public static PublicTransportStop createMinimal(GeoJSONCoordinate position)
public void validate()
ValidatableIllegalArgumentException including a description of the
invalid state is thrown.validate in interface Validatablevalidate in class Location<PublicTransportStop>public int hashCode()
hashCode in class Location<PublicTransportStop>public boolean equals(Object obj)
equals in class Location<PublicTransportStop>public String toString()
toString in class Location<PublicTransportStop>Copyright © 2018. All rights reserved.