public class Point extends java.lang.Object implements FloorResource
Modifier and Type | Field and Description |
---|---|
static <any> |
CREATOR |
static Point |
EMPTY_INDOOR |
static Point |
EMPTY_OUTDOOR |
Constructor and Description |
---|
Point(Building building,
java.lang.String floorIdentifier,
CartesianCoordinate cartesianCoordinate)
Create a point placed indoors.
|
Point(Coordinate coordinate)
Create a point placed outdoors.
|
Point(Point point) |
Point(java.lang.String buildingIdentifier,
Coordinate coordinate)
Create a point placed outdoors.
|
Point(java.lang.String buildingIdentifier,
java.lang.String floorIdentifier,
Coordinate coordinate,
CartesianCoordinate cartesianCoordinate)
Create a point placed indoors.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getBuildingIdentifier()
Returns unique identifier for the building to which this point belongs
|
CartesianCoordinate |
getCartesianCoordinate()
Returns cartesian coordinate (in meters) relative to the
Bounds of building's base. |
Coordinate |
getCoordinate()
Returns geographic coordinate (latitude, longitude) of the point, regardless of whether it's placed inside or outside the building
You can obtain this value from
CartesianCoordinate using CoordinateConverter . |
java.lang.String |
getFloorIdentifier()
Returns floor identifier (inside the building) where this point is placed.
|
int |
hashCode() |
boolean |
isIndoor()
Return if the POI is inside the building.
|
boolean |
isOutdoor()
Return if the POI is outside the building.
|
boolean |
sameFloor(Point that) |
java.lang.String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Point EMPTY_INDOOR
public static final Point EMPTY_OUTDOOR
public static final <any> CREATOR
public Point(Coordinate coordinate)
coordinate
- public Point(java.lang.String buildingIdentifier, Coordinate coordinate)
buildingIdentifier
- coordinate
- public Point(java.lang.String buildingIdentifier, java.lang.String floorIdentifier, Coordinate coordinate, CartesianCoordinate cartesianCoordinate)
buildingIdentifier
- floorIdentifier
- coordinate
- cartesianCoordinate
- public Point(Building building, java.lang.String floorIdentifier, CartesianCoordinate cartesianCoordinate)
public Point(Point point)
public final CartesianCoordinate getCartesianCoordinate()
Bounds
of building's base.
If this point is outdoors (isOutdoor
== true), this field has no meaning.Coordinate
of this point, or (0,0) if it's outdoors.#isOutdoor()} to check if the poi is indoors or outdoors
public final Coordinate getCoordinate()
CartesianCoordinate
using CoordinateConverter
.Coordinate
of this point.public final java.lang.String getBuildingIdentifier()
getBuildingIdentifier
in interface BuildingResource
public final java.lang.String getFloorIdentifier()
getFloorIdentifier
in interface FloorResource
String
. If the point is outdoors, the value is unexpected.#isOutdoor()} to check if the poi is indoors or outdoors
public final boolean isOutdoor()
public final boolean isIndoor()
public final boolean sameFloor(Point that)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int describeContents()
public void writeToParcel(Parcel dest, int flags)