Package slash.navigation.routing
Interface RoutingService
- All Known Implementing Classes:
BaseRoutingService,BRouter,GoogleRoutingService,GraphHopper,StraightLine
public interface RoutingService
Interface for a service that determines the routing between two given positions.
- Author:
- Christian Pesch
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddRoutingServiceListener(RoutingServiceListener routingServiceListener) longcalculateRemainingDownloadSize(List<MapDescriptor> mapDescriptors) voiddownloadRoutingData(List<MapDescriptor> mapDescriptors) downloadRoutingDataFor(String mapIdentifier, List<LongitudeAndLatitude> longitudeAndLatitudes) getCoverageTiles(BoundingBox area) getName()getPath()getRouteBetween(NavigationPosition from, NavigationPosition to, TravelMode travelMode, TravelRestrictions travelRestrictions) default PolygongetRoutingCoverage(MapDescriptor mapDescriptor, Runnable onAvailable) The exact area for which the routing data of the given map is valid, if known.getSnapToRoadPosition(NavigationPosition position) booleanbooleandefault booleanisRoutingDataAvailable(MapDescriptor mapDescriptor) Whether routing data for the given map is present locally.void
-
Method Details
-
getName
String getName() -
isInitialized
boolean isInitialized() -
isDownload
boolean isDownload() -
getAvailableTravelModes
List<TravelMode> getAvailableTravelModes() -
getAvailableTravelRestrictions
TravelRestrictions getAvailableTravelRestrictions() -
getPreferredTravelMode
TravelMode getPreferredTravelMode() -
getPath
String getPath() -
setPath
-
downloadRoutingDataFor
DownloadFuture downloadRoutingDataFor(String mapIdentifier, List<LongitudeAndLatitude> longitudeAndLatitudes) -
calculateRemainingDownloadSize
-
downloadRoutingData
-