-
Notifications
You must be signed in to change notification settings - Fork 77
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
GeoJson Compliant Decoding #33
Comments
In general it could make sense to have the APIs a bit more flexible, as long as they stay easy to use (e.g. it should always be clear which kind of input is given). Would you mind crafting an example (in one language), how you would imagine such an extension to look like? |
@roshats @lene what do you think? Adding support for something like this could be done in several ways: Also consider how that would impact the 3D version (which already describes the variable 3rd dimension with a type). E.g. the Rust API looks like this right now:
|
I am not keen on possibility A, for a number of reasons. First, this is a reference implementation for encoding Flexible Polylines (even if it has turned into a library in the meantime, it still serves as reference implementation) and for that reason it should do just de- and encoding. Then, if we add GeoJSON conversion for one language, we would need to do it for all supported languages and I don't see anyone taking the time for that. I could go with B, preferably keeping the Thoughts? Anyone? |
As a user, I think it makes much more semantic sense to have each of these functions contained together in a single module, since they fundamentally do the basic operations. A separate repo for each function doesn't seem quite idiomatic to me. But maybe those belong in a separate library repo as you mentioned, and not this reference implementation.
vs.
I'll respect whatever your team decides re: this issue, just wanted to give some feedback on a helpful use case for how my org is using some of the HERE APIs and needing to interface the outputs with other SDKs. Thanks for your time. |
Closed this issue, it was accidentally left open for all this time :) |
Would the team be open to adding a flag or options argument to the
decode
function to parameterize thatx, y
encoding for the coordinate pairs per the GeoJSON spec is needed and not the defaulty, x
encoding. I can see there are low level bindings in various languages implemented for this and understand it's not a small task, but I think it would be quite helpful for many use cases. If you think that sort of function signature would work fordecode
or would consider a separatedecodeToGeoJson
function, I'd be happy to PR it for the JavaScript implementation.The text was updated successfully, but these errors were encountered: