Test build exporing non-speakable turns

This commit is contained in:
sonora 2016-05-21 19:24:37 +02:00
parent 66cbc69120
commit 73021a06ab

View file

@ -813,9 +813,11 @@ public class RouteCalculationResult {
cacheAgreggatedDirections = new ArrayList<RouteDirectionInfo>();
RouteDirectionInfo p = null;
for(RouteDirectionInfo i : list) {
if(p == null || !i.getTurnType().isSkipToSpeak() ||
(!Algorithms.objectEquals(p.getRef(), i.getRef()) &&
!Algorithms.objectEquals(p.getStreetName(), i.getStreetName()))) {
// if(p == null || !i.getTurnType().isSkipToSpeak() ||
// (!Algorithms.objectEquals(p.getRef(), i.getRef()) &&
// !Algorithms.objectEquals(p.getStreetName(), i.getStreetName()))) {
// Just a temporary test
if(p == null || !i.getTurnType().isSkipToSpeak()) {
p = new RouteDirectionInfo(i.getAverageSpeed(), i.getTurnType());
p.routePointOffset = i.routePointOffset;
p.routeEndPointOffset = i.routeEndPointOffset;