public class OtpsSPT extends Object
router = otp.getRouter() req = otp.createRequest() req.setDateTime(...) spt = router.plan(req)
| Modifier | Constructor and Description | 
|---|---|
protected  | 
OtpsSPT(ShortestPathTree spt,
       SampleFactory sampleFactory)  | 
| Modifier and Type | Method and Description | 
|---|---|
OtpsEvaluatedIndividual | 
eval(double lat,
    double lon)
Evaluate the SPT at a given point. 
 | 
List<OtpsEvaluatedIndividual> | 
eval(Iterable<OtpsIndividual> population)
Evaluate the SPT for a whole population. 
 | 
OtpsEvaluatedIndividual | 
eval(OtpsIndividual individual)
Evaluate the SPT for a single individual. 
 | 
OtpsLatLon | 
getSnappedOrigin()
Get the exact location of the origin of the search (from or to place, depending on the
 arriveBy option). 
 | 
protected OtpsSPT(ShortestPathTree spt, SampleFactory sampleFactory)
public OtpsEvaluatedIndividual eval(double lat, double lon)
lat - lon - public OtpsEvaluatedIndividual eval(OtpsIndividual individual)
individual - public List<OtpsEvaluatedIndividual> eval(Iterable<OtpsIndividual> population)
population - public OtpsLatLon getSnappedOrigin()
Copyright © 2019. All rights reserved.