public class RecordedRouteGPXFormatter extends Object implements OpenStreetMapContributorConstants
Modifier and Type | Field and Description |
---|---|
static String |
GPX_TAG_TRACK_SEGMENT_POINT |
static String |
GPX_TAG_TRACK_SEGMENT_POINT_CLOSE |
static String |
GPX_TAG_TRACK_SEGMENT_POINT_ELE |
static String |
GPX_TAG_TRACK_SEGMENT_POINT_SAT |
static String |
GPX_TAG_TRACK_SEGMENT_POINT_TIME |
MINDIAGONALMETERS_FOR_OSM_CONTRIBUTION, MINGEOPOINTS_FOR_OSM_CONTRIBUTION, NOT_SET, OSM_CREATOR_INFO, OSM_PASSWORD, OSM_USERNAME
Constructor and Description |
---|
RecordedRouteGPXFormatter() |
Modifier and Type | Method and Description |
---|---|
static String |
create(List<RecordedGeoPoint> someRecords)
Creates a String in the following XML format:
|
public static final String GPX_TAG_TRACK_SEGMENT_POINT
public static final String GPX_TAG_TRACK_SEGMENT_POINT_CLOSE
public static final String GPX_TAG_TRACK_SEGMENT_POINT_TIME
public static final String GPX_TAG_TRACK_SEGMENT_POINT_SAT
public static final String GPX_TAG_TRACK_SEGMENT_POINT_ELE
public static String create(List<RecordedGeoPoint> someRecords) throws IllegalArgumentException
<?xml version="1.0"?> <gpx version="1.1" creator="AndNav - http://www.andnav.org - Android Navigation System" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.topografix.com/GPX/1/1" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"> <time>2008-09-22T00:46:20Z</time> <trk> <name>plusminus--yyyyMMdd_HHmmss-yyyyMMdd_HHmmss</name> <trkseg> <trkpt lat="49.472767" lon="8.654174"> <time>2008-09-22T00:46:20Z</time> </trkpt> <trkpt lat="49.472797" lon="8.654102"> <time>2008-09-22T00:46:35Z</time> </trkpt> <trkpt lat="49.472802" lon="8.654185"> <time>2008-09-22T00:46:50Z</time> </trkpt> </trkseg> </trk> </gpx>
IllegalArgumentException
Copyright © 2014. All Rights Reserved.