Class CompositeRouteMetadataSource
java.lang.Object
slash.navigation.converter.gui.models.CompositeRouteMetadataSource
- All Implemented Interfaces:
RouteMetadataSource
Queries multiple
RouteMetadataSources in the given order; the first
source that knows the route wins.- Author:
- Christian Pesch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDistanceAndTime(String url) Returns the known distance and time for the route with the given URL.
-
Constructor Details
-
Method Details
-
getDistanceAndTime
Description copied from interface:RouteMetadataSourceReturns the known distance and time for the route with the given URL.- Specified by:
getDistanceAndTimein interfaceRouteMetadataSource- Parameters:
url- the URL of the route- Returns:
- the distance and time or null if this source does not know the route
-