Package com.cercalia.sdk.model.proximity
Class ProximityOptions
java.lang.Object
com.cercalia.sdk.model.proximity.ProximityOptions
Options for proximity search.
Example usage:
ProximityOptions options = ProximityOptions.builder(new Coordinate(2.1734, 41.3851))
.count(10)
.categories("gas_station", "parking")
.maxRadius(5000)
.includeRouting(true)
.build();
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ProximityOptions.Builderbuilder(@NotNull Coordinate center) @NotNull Coordinate@Nullable IntegergetCount()@Nullable Boolean@Nullable Integer@Nullable ProximityRouteWeight
-
Method Details
-
getCenter
- Returns:
- Center coordinate for the search.
-
getCount
- Returns:
- Maximum number of results to return.
-
getCategories
- Returns:
- Categories to filter by.
-
getMaxRadius
- Returns:
- Maximum search radius in meters.
-
getIncludeRouting
- Returns:
- Whether to include routing information in the results.
-
getRouteWeight
- Returns:
- Route weight type for routing calculation.
-
builder
@NotNull public static @NotNull ProximityOptions.Builder builder(@NotNull @NotNull Coordinate center) - Parameters:
center- The search center coordinate.- Returns:
- A new builder for
ProximityOptions.
-