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>

Types

Link copied to clipboard
annotation class GeometryType
Link copied to clipboard
annotation class GeometryTypeName

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

Properties

Link copied to clipboard
val BBOX_NE_LAT: Int
Link copied to clipboard
val BBOX_NE_LNG: Int
Link copied to clipboard
val BBOX_SW_LAT: Int
Link copied to clipboard
val BBOX_SW_LNG: Int
Link copied to clipboard
val FLOOR_INDEX: Int
Z / floorIndex index into the coordinates array
Link copied to clipboard
val GEOMETRYCOLLECTION: String
Link copied to clipboard
open val iType: Int
Link copied to clipboard
val LAT: Int
Latitude index into the coordinates array
Link copied to clipboard
val LINESTRING: String
Link copied to clipboard
val LNG: Int
Longitude index into the coordinates array
Link copied to clipboard
val MULTILINESTRING: String
Link copied to clipboard
val MULTIPOINT: String
Link copied to clipboard
val MULTIPOLYGON: String
Link copied to clipboard
val POINT: String
Link copied to clipboard
val POINT_AREA: Float
Link copied to clipboard
val POLYGON: String
Link copied to clipboard
@SerializedName(value = "type")
@get:NonNull
protected open val type: String
Link copied to clipboard
val TYPE_GEOMETRYCOLLECTION: Int
Link copied to clipboard
val TYPE_LINESTRING: Int
Link copied to clipboard
val TYPE_MULTILINESTRING: Int
Link copied to clipboard
val TYPE_MULTIPOINT: Int
Link copied to clipboard
val TYPE_MULTIPOLYGON: Int
Link copied to clipboard
val TYPE_POINT: Int
Link copied to clipboard
val TYPE_POLYGON: Int

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard