Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enumerate categories #119

Open
1ec5 opened this issue Oct 5, 2017 · 2 comments
Open

Enumerate categories #119

1ec5 opened this issue Oct 5, 2017 · 2 comments

Comments

@1ec5
Copy link
Contributor

1ec5 commented Oct 5, 2017

The Geocoding API has introduced experimental support for category search, which is analogous to MapKit’s MKLocalSearch/MKLocalSearchRequest API. The Geocoding API doesn’t currently support natural language queries; instead, you specify one of a number of predefined keywords as the query and pointOfInterest as the scope (and typically a focalLocation). An application can present the user with a series of buttons for common categories to search for, similar to the one in Apple’s Maps application.

Category search currently works without any modifications to this library. However, we can improve the feature’s discoverability by providing an enumeration of the supported categories. Since the set of categories is open-ended and subject to change, it’ll need to be an extensible string enumeration, similar to the profile identifiers exposed by MapboxDirections.swift. We should mark this enumeration with the - experimental documentation command until the “Preview” tag is removed from the API documentation.

/cc @frederoni @bsudekum

@1ec5
Copy link
Contributor Author

1ec5 commented Oct 5, 2017

mapbox/mapbox-java#582 is the equivalent issue for the Android and Java SE platforms.

@1ec5
Copy link
Contributor Author

1ec5 commented Dec 12, 2017

mapbox/mapbox-java#582 (comment) points out that there are a ton of possible values, which may make it impractical to provide constants for each value. How else would be we improve the discoverability of this feature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant