Package com.graphhopper
Class GHResponse
java.lang.Object
com.graphhopper.GHResponse
Wrapper containing path and error output of GraphHopper.
- Author:
- Peter Karich
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(ResponsePath responsePath) void
addDebugInfo
(String debugInfo) getAll()
This method returns the best path as well as all alternatives.getBest()
Returns the best path.This method returns all the explicitly added errors and the errors of all paths.getHints()
boolean
This method returns true if there are alternative paths available besides the best.boolean
This method returns true if one of the paths has an error or if the response itself is erroneous.void
toString()
-
Constructor Details
-
GHResponse
public GHResponse()
-
-
Method Details
-
add
-
getBest
Returns the best path. -
getAll
This method returns the best path as well as all alternatives. -
hasAlternatives
public boolean hasAlternatives()This method returns true if there are alternative paths available besides the best. -
addDebugInfo
-
getDebugInfo
-
hasErrors
public boolean hasErrors()This method returns true if one of the paths has an error or if the response itself is erroneous. -
getErrors
This method returns all the explicitly added errors and the errors of all paths. -
addErrors
-
addError
-
toString
-
setHints
-
getHints
-
getHeader
-