Class ProximityOptions

java.lang.Object
com.cercalia.sdk.model.proximity.ProximityOptions

public final class ProximityOptions extends Object
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();
 
  • Method Details

    • getCenter

      @NotNull public @NotNull Coordinate getCenter()
      Returns:
      Center coordinate for the search.
    • getCount

      @Nullable public @Nullable Integer getCount()
      Returns:
      Maximum number of results to return.
    • getCategories

      @Nullable public @Nullable List<String> getCategories()
      Returns:
      Categories to filter by.
    • getMaxRadius

      @Nullable public @Nullable Integer getMaxRadius()
      Returns:
      Maximum search radius in meters.
    • getIncludeRouting

      @Nullable public @Nullable Boolean getIncludeRouting()
      Returns:
      Whether to include routing information in the results.
    • getRouteWeight

      @Nullable public @Nullable ProximityRouteWeight 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.