Package slash.navigation.gpx.garmin3

Examples of slash.navigation.gpx.garmin3.TrackPointExtensionT


                if (extensions != null) {
                    for (Object any : extensions.getAny()) {
                        if (any instanceof JAXBElement) {
                            Object anyValue = ((JAXBElement) any).getValue();
                            if (anyValue instanceof RoutePointExtensionT) {
                                RoutePointExtensionT routePoint = (RoutePointExtensionT) anyValue;
                                for (AutoroutePointT autoroutePoint : routePoint.getRpt()) {
                                    positions.add(new GpxPosition(autoroutePoint.getLon(), autoroutePoint.getLat(), null, null, null, null, null, null, null, null, null, null));
                                }
                            }
                        }
                    }
View Full Code Here


        if (extensions != null) {
            for (Object any : extensions.getAny()) {
                if (any instanceof JAXBElement) {
                    Object anyValue = ((JAXBElement) any).getValue();
                    if (anyValue instanceof TrackPointExtensionT) {
                        TrackPointExtensionT trackPoint = (TrackPointExtensionT) anyValue;
                        result = trackPoint.getSpeed();
                        // everything is converted from m/s to Km/h except for the exceptional case
                        if (!hasSpeedInKiloMeterPerHourInsteadOfMeterPerSecond)
                            result = asKmh(result);
                    }
View Full Code Here

        if (extensions != null) {
            for (Object any : extensions.getAny()) {
                if (any instanceof JAXBElement) {
                    Object anyValue = ((JAXBElement) any).getValue();
                    if (anyValue instanceof TrackPointExtensionT) {
                        TrackPointExtensionT trackPoint = (TrackPointExtensionT) anyValue;
                        result = formatDouble(trackPoint.getCourse());
                    }

                } else if (any instanceof Element) {
                    Element element = (Element) any;
                    if ("course".equals(element.getLocalName()))
View Full Code Here

TOP

Related Classes of slash.navigation.gpx.garmin3.TrackPointExtensionT

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.