@Path(value="/routers/{routerId}/isochrone") public class LIsochrone extends RoutingResource
http://localhost:8080/otp-rest-servlet/ws/isochrone?routerId=bordeaux&algorithm=accSampling&fromPlace=47.059,-0.880&date=2013/10/01&time=12:00:00&maxWalkDistance=1000&mode=WALK,TRANSIT&cutoffSec=1800&cutoffSec=3600
arriveBy, bannedAgencies, bannedRoutes, bannedStops, bannedStopsHard, bannedTrips, batch, bikeBoardCost, bikeSpeed, bikeSwitchCost, bikeSwitchTime, clampInitialWait, date, disableRemainingWeightHeuristic, flexFlagStopBufferSize, flexIgnoreDrtAdvanceBookMin, flexUseEligibilityServices, flexUseReservationServices, fromPlace, ignoreRealtimeUpdates, intermediatePlaces, maxPreTransitTime, maxTransfers, maxWalkDistance, minTransferTime, modes, nonpreferredTransferPenalty, numItineraries, optimize, otherThanPreferredRoutesPenalty, otpServer, preferredAgencies, preferredRoutes, reverseOptimizeOnTheFly, routerId, showIntermediateStops, startTransitStopId, startTransitTripId, time, toPlace, transferPenalty, triangleSafetyFactor, triangleSlopeFactor, triangleTimeFactor, unpreferredAgencies, unpreferredRoutes, waitAtBeginningFactor, waitReluctance, walkBoardCost, walkReluctance, walkSpeed, wheelchair, whiteListedAgencies, whiteListedRoutes
Constructor and Description |
---|
LIsochrone() |
Modifier and Type | Method and Description |
---|---|
List<IsochroneData> |
computeIsochrone()
Generic method to compute isochrones.
|
javax.ws.rs.core.Response |
getGeoJsonIsochrone() |
javax.ws.rs.core.Response |
getZippedShapefileIsochrone(String shpName,
boolean stream) |
static org.geotools.data.simple.SimpleFeatureCollection |
makeContourFeatures(List<IsochroneData> isochrones)
Create a geotools feature collection from a list of isochrones in the OTPA internal format.
|
buildRequest
@GET @Produces(value="application/json") public javax.ws.rs.core.Response getGeoJsonIsochrone() throws Exception
Exception
@GET @Produces(value="application/x-zip-compressed") public javax.ws.rs.core.Response getZippedShapefileIsochrone(@QueryParam(value="shpName") String shpName, @QueryParam(value="stream") @DefaultValue(value="true") boolean stream) throws Exception
Exception
public static org.geotools.data.simple.SimpleFeatureCollection makeContourFeatures(List<IsochroneData> isochrones)
public List<IsochroneData> computeIsochrone() throws Exception
Exception
Copyright © 2019. All rights reserved.