THIS SDK ISDEPRECATED. We rolled out a new and better SDK for you.
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.
Copy 1 FuzzySearchEngineDescriptor fuzzySearchEngineDescriptor = new FuzzySearchEngineDescriptor . Builder ( )
5 FuzzyLocationDescriptor fuzzyLocationDescriptor = new FuzzyLocationDescriptor . Builder ( )
6 . positionBias ( new LatLngBias ( position , STANDARD_RADIUS ) )
8 return new FuzzySearchSpecification . Builder ( text )
9 . searchEngineDescriptor ( fuzzySearchEngineDescriptor )
10 . locationDescriptor ( fuzzyLocationDescriptor )
Copy 1 val locationDescriptor = FuzzyLocationDescriptor . Builder ( )
2 . positionBias ( preciseness )
5 val searchEngineDescriptor = FuzzySearchEngineDescriptor . Builder ( )
9 val categorySearchSpecification = FuzzySearchSpecification . Builder ( term )
10 . searchEngineDescriptor ( searchEngineDescriptor )
11 . locationDescriptor ( locationDescriptor )
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