Package slash.navigation.bcr

Examples of slash.navigation.bcr.BcrPosition


        return nameValues.keySet();
    }


    public BcrPosition asMTPPosition() {
        return new BcrPosition(getX(), getY(), getElevation(), getDescription());
    }
View Full Code Here


    }

    protected BcrRoute asBcrFormat(BcrFormat format) {
        List<BcrPosition> bcrPositions = new ArrayList<BcrPosition>();
        for (TomTomPosition tomTomPosition : positions) {
            BcrPosition bcrPosition = tomTomPosition.asMTPPosition();
            // shortens description to better fit to Map&Guide Tourenplaner station list
            String location = tomTomPosition.getCity();
            if (location != null)
                bcrPosition.setDescription(location);
            bcrPositions.add(bcrPosition);
        }
        return new BcrRoute(format, getName(), getDescription(), bcrPositions);
    }
View Full Code Here

    public Wgs84Position asMotoPlanerUrlPosition() {
        return asWgs84Position();
    }

    public BcrPosition asMTPPosition() {
        return new BcrPosition(getLongitude(), getLatitude(), getElevation(), getSpeed(), getTime(), getDescription());
    }
View Full Code Here

    }

    protected BcrRoute asBcrFormat(BcrFormat format) {
        List<BcrPosition> bcrPositions = new ArrayList<BcrPosition>();
        for (GpxPosition position : positions) {
            BcrPosition bcrPosition = position.asMTPPosition();
            // shortens description to better fit to Map&Guide Tourenplaner station list
            String location = position.getCity();
            if (location != null)
                bcrPosition.setDescription(location);
            bcrPositions.add(bcrPosition);
        }
        return new BcrRoute(format, getName(), getDescription(), bcrPositions);
    }
View Full Code Here

        return houseNumber;
    }


    public BcrPosition asMTPPosition() {
        return new BcrPosition(getX(), getY(), getElevation(), getDescription());
    }
View Full Code Here

            else if (sourceFormat instanceof AlanTrackLogFormat)
                assertEquals("Description " + index + " does not match", sourcePosition.getDescription(), targetPosition.getDescription());
            else if (targetFormat instanceof AlanWaypointsAndRoutesFormat)
                assertEquals("Description " + index + " does not match", getAlanWaypointsAndRoutesPositionDescription(sourcePosition), getAlanWaypointsAndRoutesPositionDescription(targetPosition));
            else if (sourceFormat instanceof BcrFormat && targetFormat instanceof TomTomRouteFormat) {
                BcrPosition bcrPosition = (BcrPosition) sourcePosition;
                assertEquals("Description " + index + " does not match", escapeBcr(bcrPosition.getCity() + (bcrPosition.getStreet() != null ? "," + bcrPosition.getStreet() : "")), targetPosition.getDescription());
            } else if (sourceFormat instanceof GarminPoiFormat && targetFormat instanceof GarminPoiDbFormat) {
                String sourceName = getGarminPoiDbPositionDescription(sourcePosition);
                String targetName = getGarminPoiDbPositionDescription(targetPosition);
                assertEquals("Description " + index + " does not match", sourceName, targetName);
            } else if (targetFormat instanceof GarminPoiDbFormat) {
View Full Code Here

TOP

Related Classes of slash.navigation.bcr.BcrPosition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.