#include <MPLocationQuery.h>
Locations query object used in conjunction with the MPLocationsProvider
◆ queryWithUrl:
Parses an url, identifies query elements and returns a query object
◆ building
◆ categories
- (NSArray<NSString*>*) categories |
|
readwritenonatomicstrong |
Category filter. Supports the category keys provided from the MPCategoriesProvider. Does not support the localized names of the categories.
◆ floor
◆ mapExtend
Adds a geographic filter as a bounding box, specified by north, east, south and west
◆ max
◆ near
Set a reference position coordinate. Distances to this position will affect the relevance of the search results. Only applies when ordering by relevance (default sort order).
◆ orderBy
Order by "relevance", "name", "roomId", "venue", "building", "floor". Default is "relevance".
◆ query
◆ queryGeneration
- (NSUInteger) queryGeneration |
|
readatomicassign |
Query Generation - if the query is reused for multiple searches this will hold the most recent query generation
◆ queryMode
Location query mode. Defaults to MPLocationQueryModeNormal.
The location query mode determines what happens when a MPLocationQuery is re-used, and executed multiple time.
MPLocationQueryModeNormal: Results will be delivered for all executions of the query.
MPLocationQueryModeAutocomplete: If a query is already executing it will be cancelled when a new query is started. This allows starting a query as th euser types, where only the result of the last query is relevant.
◆ radius
Sets a radius limit in meters. Only to be used in conjunction with near property. This will cap the search results to the locations which distance to the near-position is less than specified as radius
◆ sortOrder
Apply a sort order. Can either be "asc" or "desc". Default is "asc"
◆ types
- (NSArray<NSString*>*) types |
|
readwritenonatomicstrong |
Types filter. Supports the type strings provided from the MPSolutionsProvider.
◆ venue
◆ zoomLevel
Sets the zoom level. Currently has no effect on the search results.