public class OtpsRoutingRequest extends Object
router = otp.getRouter() req = otp.createRequest() req.setDateTime(2015, 1, 15, 14, 00, 00) req.setModes('WALK,BUS,RAIL') req.setOrigin(45.123, 1.456) spt = router.plan(req) ...
Modifier and Type | Field and Description |
---|---|
protected RoutingRequest |
req |
Modifier | Constructor and Description |
---|---|
protected |
OtpsRoutingRequest(RoutingRequest req) |
Modifier and Type | Method and Description |
---|---|
void |
setArriveBy(boolean arriveBy) |
void |
setBannedRoutes(String routeSpecList) |
void |
setBikeSpeedMs(double bikeSpeed) |
void |
setClampInitialWait(long clampInitialWait) |
void |
setDateTime(Date dateTime) |
void |
setDateTime(int year,
int month,
int day,
int hour,
int min,
int sec) |
void |
setDateTime(long epochSec) |
void |
setDestination(double lat,
double lon) |
void |
setDestination(OtpsIndividual dest) |
void |
setMaxTimeSec(long maxTimeSec) |
void |
setMaxTransfers(int maxTransfers) |
void |
setMaxTransferWalkDistance(double maxTransferWalkDistance) |
void |
setMaxWalkDistance(double maxWalkDistance) |
void |
setModes(String modesStr) |
void |
setOrigin(double lat,
double lon) |
void |
setOrigin(OtpsIndividual origin) |
void |
setWalkSpeedMs(double walkSpeed) |
void |
setWheelchairAccessible(boolean wheelchairAccessible) |
protected RoutingRequest req
protected OtpsRoutingRequest(RoutingRequest req)
public void setDateTime(int year, int month, int day, int hour, int min, int sec)
public void setDateTime(Date dateTime)
public void setDateTime(long epochSec)
public void setModes(String modesStr)
public void setArriveBy(boolean arriveBy)
public void setMaxTimeSec(long maxTimeSec)
public void setWalkSpeedMs(double walkSpeed)
public void setBikeSpeedMs(double bikeSpeed)
public void setMaxWalkDistance(double maxWalkDistance)
public void setMaxTransferWalkDistance(double maxTransferWalkDistance)
public void setWheelchairAccessible(boolean wheelchairAccessible)
public void setClampInitialWait(long clampInitialWait)
public void setOrigin(double lat, double lon)
public void setOrigin(OtpsIndividual origin)
public void setDestination(double lat, double lon)
public void setDestination(OtpsIndividual dest)
public void setBannedRoutes(String routeSpecList)
public void setMaxTransfers(int maxTransfers)
Copyright © 2018. All rights reserved.