MPPolygonGeometry

MapsIndoors GeoJSON's Polygon implementation

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
open fun asString(): String
open fun asString(iType: Int): String
Link copied to clipboard
open fun getArea(): Float
Link copied to clipboard
The values of a "bbox" array are "[west, south, east, north]", not "[minx, miny, maxx, maxy]"
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Method to get the (average) point of the geometry
Link copied to clipboard
open fun getType(): String
Link copied to clipboard
open fun isInside(@NonNull point: MPPoint): Boolean
open fun isInside(@NonNull latLng: MPLatLng): Boolean
Link copied to clipboard
open fun setBBox(@NonNull bbox: Array<Double>)
Link copied to clipboard
open fun setCoordinates(@NonNull coordinates: Array<Array<Array<Double>>>)
Link copied to clipboard
Creates a GeoJSON feature JSON string for this geometry
Link copied to clipboard
open fun toString(): String

Properties

Link copied to clipboard
val BBOX_NE_LAT: Int = 3
Link copied to clipboard
val BBOX_NE_LNG: Int = 2
Link copied to clipboard
val BBOX_SW_LAT: Int = 1
Link copied to clipboard
val BBOX_SW_LNG: Int = 0
Link copied to clipboard
val FLOOR_INDEX: Int = 2
Z / floorIndex index into the coordinates array
Link copied to clipboard
val GEOMETRYCOLLECTION: String = "GeometryCollection"
Link copied to clipboard
@get:NonNull
open val gmsPath: List<List<MPLatLng>>
First list is the outline and any other, holes
Link copied to clipboard
open val iType: Int
Link copied to clipboard
val LAT: Int = 1
Latitude index into the coordinates array
Link copied to clipboard
Link copied to clipboard
val LINESTRING: String = "LineString"
Link copied to clipboard
val LNG: Int = 0
Longitude index into the coordinates array
Link copied to clipboard
val MULTILINESTRING: String = "MultiLineString"
Link copied to clipboard
val MULTIPOINT: String = "MultiPoint"
Link copied to clipboard
val MULTIPOLYGON: String = "MultiPolygon"
Link copied to clipboard
val POINT: String = "Point"
Link copied to clipboard
val POINT_AREA: Float = 0.5f
Link copied to clipboard
open val points: List<List<MPPoint>>
First list is the outline and any other, holes
Link copied to clipboard
val POLYGON: String = "Polygon"
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val TYPE_POINT: Int = 0
Link copied to clipboard
val TYPE_POLYGON: Int = 4