Fix roundabout issue

This commit is contained in:
vshcherb 2014-02-28 12:34:06 +02:00
parent 4c8b83f139
commit f7cde7b7f3

View file

@ -259,9 +259,11 @@ public class RouteCalculationResult {
RouteDirectionInfo info = new RouteDirectionInfo(s.getSegmentSpeed(), turn);
if (routeInd < list.size()) {
int lind = routeInd;
if(turn.isRoundAbout() && routeInd + 1 < list.size()) {
if(turn.isRoundAbout()) {
// take next name for roundabout (not roundabout name)
lind = routeInd + 1;
while(lind < list.size() -1 && list.get(lind).getObject().roundabout()) {
lind++;
}
}
RouteSegmentResult next = list.get(lind);
info.setRef(next.getObject().getRef());