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
open fun getCoordinatesAsString(): String
Link copied to clipboard
open fun getFloorIndex(): Int
Gets the floor index value
Link copied to clipboard
open fun getIType(): Int
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 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
open fun toGeoJSONFeature(): String
Creates a GeoJSON feature JSON string for this geometry
Link copied to clipboard
open fun toString(): String

Properties

Link copied to clipboard
@SerializedName(value = "coordinates")
@get:NonNull
protected open var coordinates: Array<Double>
Link copied to clipboard
val EQUAL_POINT_MAX_DISTANCE: Double
The max distance a point is from another point to consider them the same point (used in equals
Link copied to clipboard
@get:NonNull
private open var latLng: MPLatLng
Link copied to clipboard
private open var tag: Any
Multipurpose object