diff --git a/lib/gpx/geo_json.rb b/lib/gpx/geo_json.rb index 2c9f263..327206c 100644 --- a/lib/gpx/geo_json.rb +++ b/lib/gpx/geo_json.rb @@ -157,7 +157,8 @@ def point_to_waypoint(point, gpx_file) GPX::Waypoint.new(gpx_file: gpx_file, lon: point[0], lat: point[1], - elevation: point[2]) + elevation: point[2], + time: point[3]) end # Given a GeoJSON coorindate point, and @@ -167,7 +168,8 @@ def point_to_track_point(point, seg) GPX::TrackPoint.new(segment: seg, lon: point[0], lat: point[1], - elevation: point[2]) + elevation: point[2], + time: point[3]) end # Returns all features in the passed geojson