Fix last road name
This commit is contained in:
parent
34d267ad56
commit
12c873189b
1 changed files with 2 additions and 2 deletions
|
@ -246,9 +246,9 @@ public class RouteCalculationResult {
|
||||||
|
|
||||||
if(turn != null) {
|
if(turn != null) {
|
||||||
RouteDirectionInfo info = new RouteDirectionInfo(s.getSegmentSpeed(), turn);
|
RouteDirectionInfo info = new RouteDirectionInfo(s.getSegmentSpeed(), turn);
|
||||||
if (routeInd + 1 < list.size()) {
|
if (routeInd < list.size()) {
|
||||||
int lind = routeInd;
|
int lind = routeInd;
|
||||||
if(turn.isRoundAbout() && routeInd + 2 < list.size()) {
|
if(turn.isRoundAbout() && routeInd + 1 < list.size()) {
|
||||||
// take next name for roundabout (not roundabout name)
|
// take next name for roundabout (not roundabout name)
|
||||||
lind = routeInd + 1;
|
lind = routeInd + 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue