SearchInAppsSDK Framework Reference

LocationSuggestionsContext

@objc
final class LocationSuggestionsContext

Context used for location-based search suggestions.

  • 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

    Swift

    @objc
    final var geoTypes: [String]?
  • Latitude in degrees. Must be in the range [-90.0, +90.0].

    Declaration

    Swift

    @objc
    final var latitude: Double
  • Longitude in degrees. Must be in the range [-180.0, +180.0].

    Declaration

    Swift

    @objc
    final var longitude: Double
  • The radius around lat-lng in meters.

    Declaration

    Swift

    @objc
    final var radiusMeters: NSNumber?
  • The start time of the time segment for which the search suggestions should apply.

    Declaration

    Swift

    @objc
    final var startTime: Date?