From 9a42f241939be111eb4b415df267edaeb36bbc2c Mon Sep 17 00:00:00 2001 From: Martin Hamrle Date: Thu, 4 Apr 2013 22:05:13 +0200 Subject: [PATCH] use destination tag in navigation --- .../osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java index 7e1ddf3432..e0eead80a9 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java @@ -267,13 +267,13 @@ public class MapInfoWidgetsFactory { int di = map.getMapLayers().getRouteInfoLayer().getDirectionInfo(); if (di >= 0 && map.getMapLayers().getRouteInfoLayer().isVisible()) { RouteDirectionInfo next = routingHelper.getRouteDirections().get(di); - text = RoutingHelper.formatStreetName(next.getStreetName(), next.getRef()); + text = RoutingHelper.formatStreetName(next.getStreetName(), next.getRef(), next.getDestinationName()); } } } else if(map.getMapViewTrackingUtilities().isMapLinkedToLocation()) { RouteDataObject rt = locationProvider.getLastKnownRouteSegment(); if(rt != null) { - text = RoutingHelper.formatStreetName(rt.getName(), rt.getRef()); + text = RoutingHelper.formatStreetName(rt.getName(), rt.getRef(), rt.getDestinationName()); } } if(text == null) {