PolygonGeometry

open class PolygonGeometry : Geometry

MapsIndoors GeoJSON's Polygon implementation

Author

Jose J Varó - Copyright © 2017 MapsPeople A/S. All rights reserved.

Constructors

Link copied to clipboard
open fun PolygonGeometry()

Functions

Link copied to clipboard
@NonNull
open fun asString(): String
@NonNull
open fun asString(iType: Int): String
Link copied to clipboard
@Nullable
open fun getBBox(): Array<Double>
The values of a "bbox" array are "[west, south, east, north]", not "[minx, miny, maxx, maxy]"
Link copied to clipboard
@Nullable
open fun getBBoxAsList(): List<Double>
Link copied to clipboard
open fun getIType(): Int
Link copied to clipboard
@Nullable
open fun getPosition(): Point
Method to get the (average) point of the geometry
Link copied to clipboard
open fun getSquaredDistanceToClosestEdge(@NonNull latLng: LatLng): Float
open fun getSquaredDistanceToClosestEdge(@NonNull point: Point): Float
Link copied to clipboard
@NonNull
open fun getType(): String
Link copied to clipboard
open fun isInside(@NonNull latLng: LatLng): Boolean
open fun isInside(@NonNull point: Point): Boolean
Link copied to clipboard
open fun setBBox(@NonNull bbox: Array<Double>)
Link copied to clipboard
@NonNull
open fun toString(): String

Properties

Link copied to clipboard
protected open val area: Float
Link copied to clipboard
@NonNull
@SerializedName(value = "coordinates")
@get:NonNull
protected open var coordinates: Array<Array<Array<Double>>>
Link copied to clipboard
@get:NonNull
private open val gmsPath: List<List<LatLng>>
First list is the outline and any other, holes
Link copied to clipboard
@get:NonNull
private open val latLngBounds: LatLngBounds
Link copied to clipboard
@get:Nullable
private open val points: List<List<Point>>
First list is the outline and any other, holes