Class RoutePlace
Class RoutePlace
- java.lang.Object
-
- com.here.sdk.routing.RoutePlace
-
public final class RoutePlace extends java.lang.ObjectThe location information.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.DoublechargeInKilowattHoursEstimated battery charge in kWh for electric vehicles when leaving this place.ChargingStationchargingStationCharging station data for electric vehicles.GeoCoordinatesdisplayCoordinatesLocation of the Points of Interest (PoI) to be displayed in the visualization.java.lang.StringidIdentifier of a public transit place if available.GeoCoordinatesmapMatchedCoordinatesMap-matched geographic coordinates.java.lang.StringnameName of a public transit place if available.GeoCoordinatesoriginalCoordinatesUser-defined geographic coordinates.java.lang.StringplatformPlatform name or number of a public transit place if available.SideOfDestinationsideOfDestinationSide of destination: left, right or undefined.RoutePlaceTypetypeThe type of the route place.java.lang.IntegerwaypointIndexIf available, this index corresponds to the waypoint in the original user-defined waypoint list.
-
Constructor Summary
Constructors Constructor Description RoutePlace(RoutePlaceType type, GeoCoordinates mapMatchedCoordinates)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()booleanisOffRoad()Checks whether theRoutePlaceis off-road or not.
-
-
-
Field Detail
-
type
@NonNull public RoutePlaceType type
The type of the route place.
-
waypointIndex
@Nullable public java.lang.Integer waypointIndex
If available, this index corresponds to the waypoint in the original user-defined waypoint list. Otherwise, this waypoint was added during route calculation by the system.
-
originalCoordinates
@Nullable public GeoCoordinates originalCoordinates
User-defined geographic coordinates. If not available, it means this place was added during route calculation.
-
mapMatchedCoordinates
@NonNull public GeoCoordinates mapMatchedCoordinates
Map-matched geographic coordinates.
-
displayCoordinates
@Nullable public GeoCoordinates displayCoordinates
Location of the Points of Interest (PoI) to be displayed in the visualization. In the map data, PoI have a set of display coordinates as well as a set of access/routing coordinates. While the access/routing coordinates specify the nearest accessible road network location that can be apart from actual location of the PoI, the display coordinates specify the location of the PoI to be displayed accurately in the visualization.
-
chargeInKilowattHours
@Nullable public java.lang.Double chargeInKilowattHours
Estimated battery charge in kWh for electric vehicles when leaving this place. Available only if the route was calculated with
EVCarOptions.ensureReachability=true.
-
chargingStation
@Nullable public ChargingStation chargingStation
Charging station data for electric vehicles.
-
name
@Nullable public java.lang.String name
Name of a public transit place if available.
-
id
@Nullable public java.lang.String id
Identifier of a public transit place if available.
-
platform
@Nullable public java.lang.String platform
Platform name or number of a public transit place if available.
-
sideOfDestination
@Nullable public SideOfDestination sideOfDestination
Side of destination: left, right or undefined.
nullfor transit sections and for origin points.UNDEFINEDiforiginalCoordinatesare not identified or too close to the road.
-
-
Constructor Detail
-
RoutePlace
public RoutePlace(@NonNull RoutePlaceType type, @NonNull GeoCoordinates mapMatchedCoordinates)Creates a new instance.
- Parameters:
type-The type of the route place.
mapMatchedCoordinates-Map-matched geographic coordinates.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
isOffRoad
public boolean isOffRoad()
Checks whether the
RoutePlaceis off-road or not.- Returns:
trueif theRoutePlaceis off-road,falseotherwise.
-
-