From 809fe75d94e1009cb4da1152a1fff8d96a2f08a0 Mon Sep 17 00:00:00 2001 From: sonora Date: Wed, 3 Aug 2016 17:07:50 +0200 Subject: [PATCH] Fix #2894 --- .../src/net/osmand/plus/routing/RouteProvider.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java b/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java index f35ce709d3..a97a57ee08 100644 --- a/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java +++ b/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java @@ -432,6 +432,18 @@ public class RouteProvider { ch.routeEndPointOffset = info.routeEndPointOffset - startI[0]; } ch.setDescriptionRoute(info.getDescriptionRoutePart()); + + // Issue #2894 + if (info.getRef() != null && !"null".equals(info.getRef())) { + ch.setRef(info.getRef()); + } + if (info.getStreetName() != null && !"null".equals(info.getStreetName())) { + ch.setStreetName(info.getStreetName()); + } + if (info.getDestinationName() != null && !"null".equals(info.getDestinationName())) { + ch.setDestinationName(info.getDestinationName()); + } + directions.add(ch); } }