Skip to content
This repository has been archived by the owner on Mar 1, 2021. It is now read-only.

Simpler shapes #175

Open
joseflorido opened this issue Jun 6, 2017 · 1 comment
Open

Simpler shapes #175

joseflorido opened this issue Jun 6, 2017 · 1 comment

Comments

@joseflorido
Copy link

Hi!

On the route response you include the shape as a polyline. It is highly detailed with many points. Is there a way to request the shape of an 'overview' of the route? That overview would have way less points but still allow rendering the route over a map with acceptable precision.

Thanks!

@dnesbitt61
Copy link
Member

There is no way to request a detail level for the returned shape. We have always recommended client side generalization as then the single shape can support whatever rendering scale is needed. If we returned a less detailed shape, then there would be no way for a client to get higher detail without a subsequent call to regenerate the route (we do not maintain any server side state).

We can consider adding a generalization_factor as a route option in the future if you think client side generalization will not meet your needs.

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

No branches or pull requests

2 participants