Package-level declarations

Types

Link copied to clipboard
sealed class ScaleOrigin

Option to define an origin, at which point of an origin geometry the scaling will occur

Functions

Link copied to clipboard
fun bezierSpline(line: LineString, duration: Int, sharpness: Double = 0.85): LineString

Takes a LineString and returns a curved version by applying a Bezier spline algorithm.

fun bezierSpline(coords: List<Position>, duration: Int, sharpness: Double = 0.85): List<Position>

Takes a list of Position and returns a curved version by applying a Bezier spline algorithm.

Link copied to clipboard
fun circle(center: Point, radius: Double, steps: Int = 64, units: Units = Units.Kilometers): Polygon

Takes a Point and calculates the circle polygon given a radius in degrees, radians, miles, or kilometers; and steps for precision.

Link copied to clipboard
fun <T : Geometry> scale(geometry: T, factor: Double, origin: ScaleOrigin = ScaleOrigin.Centroid): T

Scale a GeoJson from a given point by a factor of scaling (ex: factor=2 would make the GeoJson 200% larger). If a GeometryCollection is provided, the origin point will be calculated based on each individual Feature.