Category search

Help your users search for specific types of places with Category Search.

Sample use case: You are preparing for a long drive and would like to find nearby gas stations. Use the following code snippet to try this in your app.

JAVA
KOTLIN
1FuzzySearchEngineDescriptor fuzzySearchEngineDescriptor = new FuzzySearchEngineDescriptor.Builder()
2 .typeAhead(true)
3 .category(true)
4 .build();
5FuzzyLocationDescriptor fuzzyLocationDescriptor = new FuzzyLocationDescriptor.Builder()
6 .positionBias(new LatLngBias(position, STANDARD_RADIUS))
7 .build();
8return new FuzzySearchSpecification.Builder(text)
9 .searchEngineDescriptor(fuzzySearchEngineDescriptor)
10 .locationDescriptor(fuzzyLocationDescriptor)
11 .build();
1val locationDescriptor = FuzzyLocationDescriptor.Builder()
2 .positionBias(preciseness)
3 .build()
4
5val searchEngineDescriptor = FuzzySearchEngineDescriptor.Builder()
6 .category(true)
7 .build()
8
9val categorySearchSpecification = FuzzySearchSpecification.Builder(term)
10 .searchEngineDescriptor(searchEngineDescriptor)
11 .locationDescriptor(locationDescriptor)
12 .build()

The following is an example application view utilizing Category Search.

Address search with category: Parking

Address search with category: Gas

Address search with category: ATM