SearchInAppsSDK Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
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;
-
Declaration
Objective-C
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-07 UTC."],[[["`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` facilitates location-based search suggestions, utilizing properties like `latitude` (-90.0 to +90.0) and `longitude` (-180.0 to +180.0). It defines the search area with `radiusMeters` and allows setting a `startTime` for time-sensitive searches. The `geoTypes` property enables filtering suggestions by category, including options like 'restaurant', 'park', 'atm', 'car_rental_agency', 'grocery_store', and 'hotel'. It also includes an init method.\n"]]