RoutingRequest rr = s0.getOptions();
double walkspeed = rr.walkSpeed;
StateEditor se = s0.edit(this);
se.setBackMode(TraverseMode.WALK);
int time = (int) Math.ceil(distance / walkspeed) + 2 * StreetTransitLink.STL_TRAVERSE_COST;
se.incrementTimeInSeconds(time);
se.incrementWeight(time * rr.walkReluctance);
se.incrementWalkDistance(distance);
return se.makeState();
}