public class Point extends Object implements FloorResource, android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<Point> |
CREATOR |
static Point |
EMPTY_INDOOR |
static Point |
EMPTY_OUTDOOR |
Constructor and Description |
---|
Point(Coordinate coordinate)
Create a point placed outdoors.
|
Point(Point point) |
Point(String buildingIdentifier,
Coordinate coordinate)
Create a point placed outdoors.
|
Point(String buildingIdentifier,
String floorIdentifier,
Coordinate coordinate,
CartesianCoordinate cartesianCoordinate)
Create a point placed indoors.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object o) |
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 . |
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) |
String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final Point EMPTY_INDOOR
public static final Point EMPTY_OUTDOOR
public static final android.os.Parcelable.Creator<Point> CREATOR
public Point(Coordinate coordinate)
coordinate
- public Point(String buildingIdentifier, Coordinate coordinate)
buildingIdentifier
- coordinate
- public Point(String buildingIdentifier, String floorIdentifier, Coordinate coordinate, CartesianCoordinate cartesianCoordinate)
buildingIdentifier
- floorIdentifier
- coordinate
- 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 String getBuildingIdentifier()
getBuildingIdentifier
in interface BuildingResource
public final 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 int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable