MPPoint

open class MPPoint : MPGeometry

MapsIndoors GeoJSON's Point implementation

Constructors

Link copied to clipboard
open fun MPPoint()
Link copied to clipboard
open fun MPPoint(latitude: Double, longitude: Double)
Link copied to clipboard
open fun MPPoint(latitude: Double, longitude: Double, z: Double)
Link copied to clipboard
open fun MPPoint(@NonNull coordinates: Array<Double>)
Link copied to clipboard
open fun MPPoint(@NonNull point: MPPoint)
Link copied to clipboard
open fun MPPoint(@NonNull latLng: MPLatLng)
Link copied to clipboard
open fun MPPoint(@NonNull latitude: String, @NonNull longitude: String, @NonNull z: String)
Link copied to clipboard
open fun MPPoint(@NonNull position: String)
Link copied to clipboard
open fun MPPoint(@NonNull location: Location)

Functions

Link copied to clipboard
open fun angleBetween(@NonNull dest: MPPoint): Double
Link copied to clipboard
open fun asString(): String
open fun asString(iType: Int): String
Link copied to clipboard
open fun distanceTo(@NonNull dest: MPPoint): Double
Returns the distance to the given location in 2D (using only lat/lng)
Link copied to clipboard
open fun equals(@Nullable otherPoint: MPPoint): Boolean
Link copied to clipboard
open fun getArea(): Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getFloorIndex(): Int
Gets the floor index value
Link copied to clipboard
open fun getLat(): Double
Link copied to clipboard
open fun getLng(): Double
Link copied to clipboard
open fun getRad(angle: Double): Double
Link copied to clipboard
open fun getType(): String
Link copied to clipboard
open fun isInside(@NonNull latLng: MPLatLng): Boolean
Link copied to clipboard
open fun setCoordinates(@NonNull coordinates: Array<Double>)
Link copied to clipboard
open fun setFloorIndex(floorIndex: Double)
Link copied to clipboard
open fun setLat(latitude: Double)
Link copied to clipboard
open fun setLng(longitude: 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
The max distance a point is from another point to consider them the same point (used in equals
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
@get:NonNull
open var latLng: MPLatLng
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
open var tag: Any
Multipurpose object
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