mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
17 lines
277 B
Ruby
17 lines
277 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Points::GpxSerializer
|
|
def initialize(points)
|
|
@points = points
|
|
end
|
|
|
|
def call
|
|
geojson_data = Points::GeojsonSerializer.new(points).call
|
|
|
|
GPX::GeoJSON.convert_to_gpx(geojson_data:)
|
|
end
|
|
|
|
private
|
|
|
|
attr_reader :points
|
|
end
|