Package slash.navigation.googlemaps
Class GoogleRoutingService
java.lang.Object
slash.navigation.routing.BaseRoutingService
slash.navigation.googlemaps.GoogleRoutingService
- All Implemented Interfaces:
RoutingService
Encapsulates REST access to the Google Directions API Service. Used as
last resort, after BRouter and GraphHopper -- registered but not
preferred; see RouteConverter#initializeRoutingServices().
- Author:
- Christian Pesch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongcalculateRemainingDownloadSize(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) getSnapToRoadPosition(NavigationPosition position) booleanbooleanvoidMethods inherited from class slash.navigation.routing.BaseRoutingService
addRoutingServiceListener, fireDownloading, fireInitializing, fireRoutingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface slash.navigation.routing.RoutingService
getRoutingCoverage, isRoutingDataAvailable
-
Constructor Details
-
GoogleRoutingService
public GoogleRoutingService()
-
-
Method Details
-
getName
-
isInitialized
public boolean isInitialized() -
isDownload
public boolean isDownload() -
getAvailableTravelModes
-
getAvailableTravelRestrictions
-
getPreferredTravelMode
-
getPath
-
setPath
-
downloadRoutingDataFor
public DownloadFuture downloadRoutingDataFor(String mapIdentifier, List<LongitudeAndLatitude> longitudeAndLatitudes) -
calculateRemainingDownloadSize
-
downloadRoutingData
-