-
Notifications
You must be signed in to change notification settings - Fork 120
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
Add geocoding API for setting multiple languages #446
Comments
@cammace Is this actually fixed now. I'm using the mapbox-sdk-services:4.1.0-SNAPSHOT for my Android project. MapboxGeocoding.builder() |
Thank you @cbadhrinath. @osana could you look into this? I don't think we have a test covering this usecase (multiple languages in the request and multiple languages in the response). |
@zugaldia I will check this out |
Thank you for reporting this. We correctly do the request for multiple languages but the response object is not parsed correctly. Here is one of the CarmenFeatures returned from the above request
|
@osana Thanks for confirming the issue. I guess this needs to be re-opened. I'm using the WebAPI for now. |
Here are a couple of examples of possible responses based on the language requests. It is easier to show the difference in case of CarmenContext (text). The same applies to CarmenFeature (text, placeNames)
Geocoding service relies on AutoValue library to generate GsonTypeAdapters for its models. I think we should:
|
@osana thank you for looking into this, next steps make sense to me with the exception that if we're gonna remove AutoValue as a dependency, shouldn't we remove it for all other services too for consistency? /cc: @karenell the current API response is hard to parse on mobile due to its current structure. For future API versions, if possible, we'd love to be involved to work together in an approach that fits mobile better. |
@zugaldia At the moment I think the proposed first step is just a way to break the task in two more manageable tasks. It can be done on the same PR as well. It would be great to know the sense of urgency for this. Search is important. |
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions. |
Currently we only allow the setting of one Language for the geocoder. The Geocoding API will allow multiple Locales to be passed in. mapbox/MapboxGeocoder.swift#104
Note this needs to be exposed in both
MapboxGeocoder
and Geocoding widget.cc: @zugaldia @1ec5
The text was updated successfully, but these errors were encountered: