-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.Route,it.unibo.alchemist.model.interfaces.TimedRoute,java.io.Serializable,kotlin.collections.Iterable,kotlin.collections.MutableIterable
public final class GraphHopperRoute implements TimedRoute<GeoPosition>
Models a route on a map, built upon the information provided by a query to GraphHopper.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classGraphHopperRoute.Companion
-
Constructor Summary
Constructors Constructor Description GraphHopperRoute(GeoPosition from, GeoPosition to, GHResponse response)
-
Method Summary
Modifier and Type Method Description Doublelength()GeoPositiongetPoint(Integer step)ImmutableList<GeoPosition>getPoints()DoublegetTripTime()Iterator<GeoPosition>iterator()Stream<GeoPosition>stream()Integersize()-
-
Constructor Detail
-
GraphHopperRoute
GraphHopperRoute(GeoPosition from, GeoPosition to, GHResponse response)
-
-
Method Detail
-
getPoint
GeoPosition getPoint(Integer step)
-
getPoints
ImmutableList<GeoPosition> getPoints()
-
getTripTime
Double getTripTime()
-
iterator
Iterator<GeoPosition> iterator()
-
stream
Stream<GeoPosition> stream()
-
-
-
-