GeoJsonItinerarySerializer

object GeoJsonItinerarySerializer : KSerializer<Itinerary>

Serializes an Itinerary to and from its GeoJSON representation.

The itinerary is encoded as a FeatureCollection of LineString features. Each feature carries a levels property and, when the levels describe a range, a levelChangeType property describing the kind of vertical transition.

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): Itinerary
Link copied to clipboard
open override fun serialize(encoder: Encoder, value: Itinerary)