-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Split destinations into name, ref, ref:to, ... #3304
Comments
Note that MapboxDirections.swift is currently doing this separation by splitting the string. |
Generally I think this is a good idea. Can someone give me some context why we do the On the API side I would like to encode it as:
Just because of the object overhead and it feels more consistent with |
The question still stands if these responses should be arrays instead. Otherwise we're pushing the delimiter-separated list parsing just one level deeper. E.g. instead of
should this be
The object overhead seems to be the only reason for not doing this. |
This issue makes it difficult for a client to determine whether to assign a highway shield to a given step. For example, this way is tagged:
with no A client such as the Mapbox Navigation SDK needs to display plain text if I’m not opposed to the additional structure proposed in #3329 and #3304 (comment), although MapboxDirections.swift already splits /cc @ericrwolfe |
#3542 would in some cases require |
For mapbox/mapbox-navigation-ios#353, we had to resort to a hack that matches the As part of expanding shield coverage beyond the United States (mapbox/mapbox-navigation-ios#334), it’ll become necessary to put the |
This issue seems to be stale. It will be closed in 30 days if no further activity occurs. |
This issue seems to be stale. It will be closed in 30 days if no further activity occurs. |
We should do the same name-ref splitting as in #2704 for destinations. Right now these are string concatenated but we've seen the need to separate these again (e.g. Project-OSRM/osrm-text-instructions#51) Naming of fields and response is up for debate.
Example route that would be impacted
The text was updated successfully, but these errors were encountered: