Point

open class Point : Geometry

MapsIndoors GeoJSON's Point implementation

Author

Daniel Nielsen - Copyright © 2017 MapsPeople A/S. All rights reserved.

Constructors

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

Functions

Link copied to clipboard
open fun angleBetween(@NonNull dest: Point): Double
Link copied to clipboard
@NonNull
open fun asString(): String
@NonNull
open fun asString(iType: Int): String
Link copied to clipboard
open fun distanceTo(@NonNull dest: Point): Double
Returns the distance to the given location in 2D (using only lat/lng)
Link copied to clipboard
open fun equals(@Nullable otherPoint: Point): Boolean
Link copied to clipboard
@NonNull
open fun getCoordinatesAsString(): String
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
@NonNull
open fun getType(): String
Link copied to clipboard
open fun getZ(): Double
Gets the Z value
Link copied to clipboard
open fun getZIndex(): Int
Gets the Z value
Link copied to clipboard
open fun isInside(@NonNull latLng: LatLng): Boolean
Link copied to clipboard
open fun setLat(latitude: Double)
Link copied to clipboard
open fun setLng(longitude: Double)
Link copied to clipboard
open fun setZ(z: Double)
Link copied to clipboard
@NonNull
open fun toString(): String

Properties

Link copied to clipboard
@SerializedName(value = "coordinates")
@NonNull
@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: LatLng
Link copied to clipboard
@get:Nullable
private open var tag: Any
Multipurpose object