Package com.graphhopper.resources
Class IsochroneResource
java.lang.Object
com.graphhopper.resources.IsochroneResource
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionIsochroneResource
(GraphHopperConfig config, GraphHopper graphHopper, Triangulator triangulator, ProfileResolver profileResolver) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
doGet
(javax.ws.rs.core.UriInfo uriInfo, String profileName, @Range(min=1L,max=20L) OptionalInt nBuckets, boolean reverseFlow, @NotNull GHPointParam point, OptionalLong timeLimitInSeconds, OptionalLong distanceLimitInMeter, OptionalLong weightLimit, IsochroneResource.ResponseType respType, double toleranceInMeter, boolean fullGeometry)
-
Constructor Details
-
IsochroneResource
@Inject public IsochroneResource(GraphHopperConfig config, GraphHopper graphHopper, Triangulator triangulator, ProfileResolver profileResolver)
-
-
Method Details
-
doGet
@GET @Produces("application/json") public javax.ws.rs.core.Response doGet(@Context javax.ws.rs.core.UriInfo uriInfo, @QueryParam("profile") String profileName, @QueryParam("buckets") @Range(min=1L,max=20L) @DefaultValue("1") @Range(min=1L,max=20L) OptionalInt nBuckets, @QueryParam("reverse_flow") @DefaultValue("false") boolean reverseFlow, @QueryParam("point") @NotNull @NotNull GHPointParam point, @QueryParam("time_limit") @DefaultValue("600") OptionalLong timeLimitInSeconds, @QueryParam("distance_limit") @DefaultValue("-1") OptionalLong distanceLimitInMeter, @QueryParam("weight_limit") @DefaultValue("-1") OptionalLong weightLimit, @QueryParam("type") @DefaultValue("json") IsochroneResource.ResponseType respType, @QueryParam("tolerance") @DefaultValue("0") double toleranceInMeter, @QueryParam("full_geometry") @DefaultValue("false") boolean fullGeometry)
-