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

How to update polyline according to the user current location? #81

Open
islamarr opened this issue Mar 21, 2021 · 5 comments
Open

How to update polyline according to the user current location? #81

islamarr opened this issue Mar 21, 2021 · 5 comments

Comments

@islamarr
Copy link

No description provided.

@akexorcist
Copy link
Owner

Call this library with the new location then redraw the polyline on the map

@islamarr
Copy link
Author

islamarr commented Apr 5, 2021

@akexorcist This approach will consume a lot of API requests which will cost more.

@akexorcist
Copy link
Owner

@islamarr Absolutely yes. But no way to update the new route when user is outside the route direction with only single request from Direction API

@islamarr
Copy link
Author

islamarr commented Apr 5, 2021

@akexorcist I think we can! by using polyline.setPoints(points);
check this
https://stackoverflow.com/a/17038499/7826372
But still I can't use it through this library.

@maxxy212
Copy link

This library is great, but can I get the polyline created, so I can update just the polyLine. So that I can avoid calling the API request again

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

No branches or pull requests

3 participants