Package slash.navigation.base

Examples of slash.navigation.base.Wgs84Route


        write(route, target, UTF8_ENCODING, startIndex, endIndex);
    }

    @SuppressWarnings("unchecked")
    public <P extends NavigationPosition> SimpleRoute createRoute(RouteCharacteristics characteristics, String name, List<P> positions) {
        return new Wgs84Route(this, characteristics, (List<Wgs84Position>) positions);
    }
View Full Code Here


    protected SimpleRoute asSimpleFormat(SimpleFormat format) {
        List<Wgs84Position> wgs84positions = new ArrayList<Wgs84Position>();
        for (Wgs84Position position : positions) {
            wgs84positions.add(position.asWgs84Position());
        }
        return new Wgs84Route(format, getCharacteristics(), wgs84positions);
    }
View Full Code Here

        return ".csv";
    }

    @SuppressWarnings("unchecked")
    public <P extends NavigationPosition> SimpleRoute createRoute(RouteCharacteristics characteristics, String name, List<P> positions) {
        return new Wgs84Route(this, characteristics, (List<Wgs84Position>) positions);
    }
View Full Code Here

    protected SimpleRoute asSimpleFormat(SimpleFormat format) {
        List<Wgs84Position> wgs84Positions = new ArrayList<Wgs84Position>();
        for (GpxPosition position : positions) {
            wgs84Positions.add(position.asWgs84Position());
        }
        return new Wgs84Route(format, getCharacteristics(), wgs84Positions);
    }
View Full Code Here

        return false;
    }

    @SuppressWarnings({"unchecked"})
    public <P extends NavigationPosition> SimpleRoute createRoute(RouteCharacteristics characteristics, String name, List<P> positions) {
        return new Wgs84Route(this, characteristics, (List<Wgs84Position>) positions);
    }
View Full Code Here

    protected SimpleRoute asSimpleFormat(SimpleFormat format) {
        List<Wgs84Position> positions = new ArrayList<Wgs84Position>();
        for (Wgs84Position Wgs84Position : this.positions) {
            positions.add(Wgs84Position.asWgs84Position());
        }
        return new Wgs84Route(format, getCharacteristics(), positions);
    }
View Full Code Here

        return "i-Blue 747 (*" + getExtension() + ")";
    }

    @SuppressWarnings("unchecked")
    public <P extends NavigationPosition> SimpleRoute createRoute(RouteCharacteristics characteristics, String name, List<P> positions) {
        return new Wgs84Route(this, characteristics, (List<Wgs84Position>) positions);
    }
View Full Code Here

        return "Glopus (*" + getExtension() + ")";
    }

    @SuppressWarnings("unchecked")
    public <P extends NavigationPosition> SimpleRoute createRoute(RouteCharacteristics characteristics, String name, List<P> positions) {
        return new Wgs84Route(this, characteristics, (List<Wgs84Position>) positions);
    }
View Full Code Here

    protected abstract int getHeaderSize();

    @SuppressWarnings({"unchecked"})
    public <P extends NavigationPosition> Wgs84Route createRoute(RouteCharacteristics characteristics, String name, List<P> positions) {
        return new Wgs84Route(this, characteristics, (List<Wgs84Position>) positions);
    }
View Full Code Here

                trackFlag = 1;

            if ((trackFlag & 1) == 1) {
                // new track
                trackPoints = new ArrayList<NavigationPosition>();
                Wgs84Route track = createRoute(Track, null, trackPoints);
                result.add(track);
                trackPointNo = 1;

                // trackname = time of first point
                NavigationPosition newPoint = createWaypoint(time, latitude, longitude, altitude, 0, true);
                track.setName(createDateFormat(TRACK_NAME_DATE_FORMAT).format(newPoint.getTime().getTime()));
            }

            if ((trackFlag & 2) == 2) {
                // track pushpoint
                if (pushPoints == null) {
                    pushPoints = new ArrayList<NavigationPosition>();
                    Wgs84Route points = createRoute(Waypoints, "Pushpoints", pushPoints);
                    result.add(points);
                }

                pushPoints.add(createWaypoint(time, latitude, longitude, altitude, pushPointNo++, false));
            }
View Full Code Here

TOP

Related Classes of slash.navigation.base.Wgs84Route

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.