MPGeometry

abstract class MPGeometry

Base GeoJSON class for MPPoint, MPPolygonGeometry, etc.

See also

<a href="https://tools.ietf.org/html/rfc7946#section-3.1">https://tools.ietf.org/html/rfc7946#section-3.1</a>
<a href="https://tools.ietf.org/html/rfc7946#appendix-A">https://tools.ietf.org/html/rfc7946#appendix-A</a>

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
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
open fun getType(): String
Link copied to clipboard
abstract fun isInside(@NonNull latLng: MPLatLng): Boolean
Link copied to clipboard
Creates a GeoJSON feature JSON string for this geometry

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
open val iType: Int
Link copied to clipboard
val LAT: Int = 1
Latitude index into the coordinates array
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
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