public class GLSearchOffline
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
com.glmapview.GLNativeObject.Type |
static interface |
GLSearchOffline.GLMapSearchCompletion |
| Constructor and Description |
|---|
GLSearchOffline() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCategoryFilter(GLSearchCategory category)
Adds category filter.
|
void |
addNameFilter(java.lang.String word)
Adds name filter (name of object contains word)
|
void |
addNamesFilter(java.lang.String[] words)
Adds name filter (name of object contains ANY of word in array).
|
void |
addTagFilter(java.lang.String tag,
java.lang.String[] values)
Adds custom filter by tag (value of tag exactly matches to one of given values)
|
void |
cancel()
Cancels search operation.
|
void |
dispose() |
void |
setBBox(GLMapBBox bbox)
Sets bounding box where search will be performed
|
void |
setCategories(GLSearchCategories categories)
Sets categories that used to sort results by importance.
|
void |
setCenter(MapPoint center)
Sets center of search.
|
void |
setLimit(int limit)
Sets maximum number of results to fetch from map
|
void |
setLocaleSettings(GLMapLocaleSettings localeSettings)
Sets locale settings that used to sort results by importance.
|
void |
start(java.util.List customObjects,
GLSearchOffline.GLMapSearchCompletion callback)
Starts search.
|
public void addNameFilter(java.lang.String word)
word - Word querypublic void addNamesFilter(java.lang.String[] words)
words - Array of wordspublic void setCategories(GLSearchCategories categories)
categories - Categories containerpublic void setLocaleSettings(GLMapLocaleSettings localeSettings)
localeSettings - Language priority settings.public void addCategoryFilter(GLSearchCategory category)
category - Category objectpublic void addTagFilter(java.lang.String tag,
java.lang.String[] values)
tag - Tag. e.g. "amenity"values - Array of values. e.g. ["bar", "pub"]public void setLimit(int limit)
limit - Results limitpublic void setBBox(GLMapBBox bbox)
bbox - Search bounding box.public void setCenter(MapPoint center)
center - Center point.public void start(java.util.List customObjects,
GLSearchOffline.GLMapSearchCompletion callback)
customObjects - Custom object to add to resultscallback - will be called when search is finished or when search needs information about custom object.public void cancel()
public void dispose()
Copyright © 2017 GetYourMap. All Rights Reserved.