@mapsindoors/react-native-maps-indoors-google-maps
    Preparing search index...

    Class MPPoint

    MPPoint is a representation of latitude and longitude coordinates packaged with a Z-axis representation in floorIndex.

    MPPoint

    Hierarchy (View Summary)

    Index

    Constructors

    • Creates an instance of MPPoint.

      Parameters

      • latitude: number

        The position of the point on the latitudal axis (N/S).

      • longitude: number

        The position of the point on the longitudal axis (E/W).

      • OptionalfloorIndex: number = 0

        The floor index of the point, Will default to 0 if not provided.

      Returns MPPoint

    Properties

    floorIndex?: number

    Optional index that defines what floor this point is placed on.

    If 0 it is placed on the ground floor, or outside.

    latitude: number

    Latitude coordinate.

    longitude: number

    Longitude coordinate.

    multiPolygon: string = "MultiPolygon"

    Typename for MPMultiPolygon.

    point: string = "Point"

    Typename for MPPoint.

    polygon: string = "Polygon"

    Typename for MPPolygon.

    Accessors

    • get position(): MPPoint

      MPGeometry override, returns this object.

      Returns MPPoint

    • get type(): string

      Get the type of the point. see MPGeometry#point.

      Returns string

    Methods

    • Calculates the angle between this point and another [MPPoint] in degrees from north.

      Parameters

      Returns Promise<number>

    • Checks whether a point is contained within the geometry.

      Parameters

      Returns Promise<boolean>

    • Calculates the shortest distance to another point from this point.

      Parameters

      Returns Promise<number>

    • MPGeometry override, resolves to a non-zero value.

      Returns Promise<number>

    • Stringifies the geometry to JSON.

      Returns string

    • Parses the object to a JSON object that is compatible with the MapsIndoors SDK.

      Returns MPPointParams