SearchInAppsSDK Framework Reference

  • LocationSuggestionsContext provides context for location-based search suggestions, using latitude, longitude, and radius to define the search area.

  • It allows specifying the start time for the search suggestions to apply, enabling time-sensitive searches.

  • Supported Geo types include categories like food and drink, leisure, services, transportation, shopping, and lodging, allowing filtering of search results.

  • Developers can utilize LocationSuggestionsContext to enhance search functionality with location-based parameters and Geo type filtering for a more relevant user experience.

LocationSuggestionsContext


@interface LocationSuggestionsContext : NSObject

Context used for location-based search suggestions.

  • Latitude in degrees. Must be in the range [-90.0, +90.0].

    Declaration

    Objective-C

    @property (nonatomic) double latitude;
  • Longitude in degrees. Must be in the range [-180.0, +180.0].

    Declaration

    Objective-C

    @property (nonatomic) double longitude;
  • The radius around lat-lng in meters.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable radiusMeters;
  • The start time of the time segment for which the search suggestions should apply.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSDate *_Nullable startTime;
  • The requested Geo types. The supported types are:

    • Food and Drink Geo types - ‘restaurant’, ‘cafe’, ‘bar’
    • Leisure Geo types - ‘park’, ‘zoo’, ‘museum’, ‘attraction’
    • Services Geo types - ‘atm’, ‘bank’, ‘hair_salon’, ‘real_estate_agency’
    • Transportation Geo types - ‘bicycle_sharing_location’, ‘car_rental_agency’
    • Shopping Geo types - ‘shopping_center’, ‘grocery_store’
    • Lodging Geo types - ‘hotel’

    Declaration

    Objective-C

    @property (nonatomic, copy) NSArray<NSString *> *_Nullable geoTypes;
  • Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;