All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.jawg.geojson.Coordinates.kt Maven / Gradle / Ivy

There is a newer version: 1.2.3
Show newest version
package io.jawg.geojson

import com.fasterxml.jackson.databind.annotation.JsonDeserialize
import com.fasterxml.jackson.databind.annotation.JsonSerialize
import io.jawg.geojson.serializer.PositionDeserializer
import io.jawg.geojson.serializer.PositionSerializer

typealias PointCoordinates = Position
typealias LineStringCoordinates = List
typealias LinearRing = List
typealias PolygonCoordinates = List

@JsonDeserialize(using = PositionDeserializer::class)
@JsonSerialize(using = PositionSerializer::class)
data class Position(val lng: Double, val lat: Double, val alt: Double? = null)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy