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

Is it possible to get the coordinates of the route without drawing anything on the map ? #670

Open
MenasriaMohamed opened this issue Sep 14, 2022 · 1 comment
Assignees
Labels

Comments

@MenasriaMohamed
Copy link

Hi there,
I want the route to be rendered and get the coordinates without drawing anything on the map ( without "AddtoMap") ,Is that possible??

@curtisy1
Copy link
Collaborator

You should be able to call the route function on your control and then access the _routes property to get the routes.

Something like this should work

control.route();
const routes = control._routes;
const coordinates = control.getWaypoints();

@curtisy1 curtisy1 self-assigned this Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants