Package es.situm.sdk.model.cartography
Class Poi.Builder
java.lang.Object
es.situm.sdk.model.cartography.Poi.Builder
- Enclosing class:
- Poi
Builder to create a
Poi instances-
Constructor Summary
ConstructorsConstructorDescriptionBuilder(String buildingIdentifier, Coordinate coordinate) Creates a Builder for outdoor POIBuilder(String buildingIdentifier, String floorIdentifier, Coordinate coordinate, CartesianCoordinate cartesianCoordinate) Creates a Builder for indoor POI. -
Method Summary
Modifier and TypeMethodDescriptionbuild()categories(Collection<PoiCategory> categories) category(PoiCategory category) categoryIdentifier(String categoryIdentifier) Set the identifier of the category this POI belongs to.categoryIdentifiers(Collection<String> categoryIdentifiers) Set the identifier of the category this POI belongs to.
-
Constructor Details
-
Builder
-
Builder
-
Builder
Creates a Builder for outdoor POI- Parameters:
buildingIdentifier- Identifier of building to which POI belongs.coordinate- Not null. Geographical coordinate of this position.- Throws:
IllegalArgumentException- whenbuildingIdentifierand/orcoordinateare null.
-
Builder
public Builder(@NonNull String buildingIdentifier, @NonNull String floorIdentifier, @NonNull Coordinate coordinate, @NonNull CartesianCoordinate cartesianCoordinate) Creates a Builder for indoor POI.- Parameters:
buildingIdentifier- Identifier of building to which POI belongs.floorIdentifier- Identifier of building's level, where the position is.coordinate- Geographical coordinate of this position.cartesianCoordinate- Cartesian coordinate of this position.- Throws:
IllegalArgumentException- when some of the params is null.
-
-
Method Details
-
point
-
name
- Parameters:
name- a name for the POI, appropriate for display to the user.- Returns:
- current
Poi.Builderinstance
-
infoHtml
- Parameters:
infoHtml- additional information about POI, in HTML.- Returns:
- current
Poi.Builderinstance
-
category
- Parameters:
category- category of the POI- Returns:
- current
Poi.Builderinstance
-
categoryIdentifier
Set the identifier of the category this POI belongs to. Note: The coherence between category identifier and category object is your responsibility.- Parameters:
categoryIdentifier- The identifier.- Returns:
- current
Poi.Builderinstance
-
categories
- Parameters:
categories- categories of the POI- Returns:
- current
Poi.Builderinstance
-
categoryIdentifiers
Set the identifier of the category this POI belongs to. Note: The coherence between category identifiers and category objects is your responsibility.- Parameters:
categoryIdentifiers- The identifiers.- Returns:
- current
Poi.Builderinstance
-
build
- Returns:
- new
Poiinstance
-