Class GraphHopperRoute
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Route
,it.unibo.alchemist.model.maps.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.
-
-
Constructor Summary
Constructors Constructor Description GraphHopperRoute(GeoPosition from, GeoPosition to, GHResponse response)
-
Method Summary
Modifier and Type Method Description Double
length()
GeoPosition
getPoint(Integer step)
ImmutableList<GeoPosition>
getPoints()
Double
getTripTime()
Iterator<GeoPosition>
iterator()
Stream<GeoPosition>
stream()
Integer
size()
-
-
Constructor Detail
-
GraphHopperRoute
GraphHopperRoute(GeoPosition from, GeoPosition to, GHResponse response)
-
-
Method Detail
-
getPoint
GeoPosition getPoint(Integer step)
-
getPoints
ImmutableList<GeoPosition> getPoints()
-
getTripTime
Double getTripTime()
- Returns:
the total trip time
-
iterator
Iterator<GeoPosition> iterator()
-
stream
Stream<GeoPosition> stream()
-
-
-
-