-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for filtering results by layer, country, and source (#63)
- Loading branch information
1 parent
8c79773
commit 15b0b9b
Showing
7 changed files
with
139 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.mapzen.pelias; | ||
|
||
/** | ||
* Interface to optionally limit autocomplete results on a | ||
* {@link com.mapzen.pelias.widget.PeliasSearchView}. | ||
*/ | ||
public interface SuggestFilter { | ||
|
||
/** | ||
* Return a string in the alpha-2 or alpha-3 ISO-3166 country code format. | ||
* @return | ||
*/ | ||
String getCountryFilter(); | ||
|
||
/** | ||
* Return a comma-delimited string. For a list of valid layers, see: | ||
* https://mapzen.com/documentation/search/autocomplete/ | ||
* @return | ||
*/ | ||
String getLayersFilter(); | ||
|
||
/** | ||
* Return a comma-delimited string. For a list of valid sources, see: | ||
* https://mapzen.com/documentation/search/reverse/#filter-by-data-source | ||
* @return | ||
*/ | ||
String getSources(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters