Package com.cercalia.sdk.model.poi
Class Poi
java.lang.Object
com.cercalia.sdk.model.poi.Poi
Represents a Point of Interest (POI) result from the Cercalia API.
A POI contains information about a specific location, including its name, category, coordinates, and optionally administrative data or route-related metrics if requested in the search.
Example usage:
Poi poi = result.getPois().get(0);
System.out.println("POI: " + poi.getName() + " (" + poi.getCategoryCode() + ")");
if (poi.getDistance() != null) {
System.out.println("Distance: " + poi.getDistance() + " meters");
}
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Poi.Builderbuilder()boolean@NotNull String@NotNull CoordinategetCoord()@Nullable Integer@Nullable PoiGeographicElementgetGe()@Nullable String@NotNull StringgetId()@Nullable StringgetInfo()@NotNull StringgetName()@Nullable PixelCoordinate@Nullable Integer@Nullable Integer@Nullable Integer@Nullable Integer@Nullable Integer@Nullable StringinthashCode()toString()
-
Method Details
-
getId
- Returns:
- Unique identifier for the POI.
-
getName
- Returns:
- Name of the POI.
-
getInfo
- Returns:
- Additional information or description of the POI.
-
getCategoryCode
- Returns:
- Primary category code for the POI.
-
getSubcategoryCode
- Returns:
- Subcategory code for the POI.
-
getGeometry
- Returns:
- Geometry associated with the POI in WKT format.
-
getDistance
- Returns:
- Euclidean distance from the search center in meters.
-
getPosition
- Returns:
- Position of the POI in the list of results.
-
getRouteDistance
- Returns:
- Distance along the route in meters.
-
getRouteTime
- Returns:
- Travel time along the route in seconds.
-
getRouteRealtime
- Returns:
- Real-time travel time along the route in seconds.
-
getRouteWeight
- Returns:
- Weight value for the route calculation.
-
getCoord
- Returns:
- Geographic coordinates of the POI.
-
getGe
- Returns:
- Geographic/administrative details for the POI.
-
getPixels
- Returns:
- Pixel coordinates for the POI in a static map context.
-
builder
- Returns:
- A new builder instance.
-
equals
-
hashCode
public int hashCode() -
toString
-