toGeoJson
Converts this Route to a GeoJSON Feature with a GeometryCollection of Points.
The geometry is a GeometryCollection containing all the route points (routePoints). The properties of the feature are the properties of this Route object itself.
Return
A GeoJSON Feature representing this route.
Converts this Track object into a GeoJSON Feature object.
The geometry of the feature will be a GeometryCollection of Points, representing all the track points from all segments of the track. The original Track object is stored in the feature's properties field.
Return
A GeoJSON Feature with a GeometryCollection geometry and this Track as its properties.
Converts this TrackSegment into a GeoJSON Feature.
The feature's geometry is a GeometryCollection containing all the Point geometries from the track points (trkpt) within this segment. The feature's properties will be this TrackSegment object itself.
Return
A GeoJSON Feature representing this track segment.
Converts a Waypoint into a GeoJSON Feature with a Point geometry.
The lon, lat, and optional ele of the waypoint are used to create the Point geometry. The entire Waypoint object itself is set as the properties of the feature.
Return
A GeoJSON Feature representation of the waypoint.
Converts a list of Waypoint objects into a GeoJSON FeatureCollection.
Each Waypoint in the list is transformed into a GeoJSON Feature with a Point geometry. The original Waypoint object is set as the properties of its corresponding feature.
Return
A FeatureCollection containing a list of features, where each feature represents a waypoint from the input list.
Receiver
A list of Waypoint objects to be converted.