Package com.graphhopper.resources
Class SPTResource
java.lang.Object
com.graphhopper.resources.SPTResource
This resource provides the entire shortest path tree as response. In a simple CSV format discussed at #1577.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSPTResource
(GraphHopper graphHopper, ProfileResolver profileResolver, EncodingManager encodingManager) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
doGet
(javax.ws.rs.core.UriInfo uriInfo, String profileName, boolean reverseFlow, @NotNull GHPointParam point, String columnsParam, OptionalLong timeLimitInSeconds, OptionalLong distanceInMeter)
-
Constructor Details
-
SPTResource
@Inject public SPTResource(GraphHopper graphHopper, ProfileResolver profileResolver, EncodingManager encodingManager)
-
-
Method Details
-
doGet
@GET @Produces({"text/csv","application/json"}) public javax.ws.rs.core.Response doGet(@Context javax.ws.rs.core.UriInfo uriInfo, @QueryParam("profile") String profileName, @QueryParam("reverse_flow") @DefaultValue("false") boolean reverseFlow, @QueryParam("point") @NotNull @NotNull GHPointParam point, @QueryParam("columns") String columnsParam, @QueryParam("time_limit") @DefaultValue("600") OptionalLong timeLimitInSeconds, @QueryParam("distance_limit") @DefaultValue("-1") OptionalLong distanceInMeter)
-