Directions | 2GIS Documentation

Directions

The Directions plugin can be used to find directions through several points.

To add directions search functionality to the Map you need to include the Directions JS file after MapGL API file using unpkg CDN:

<script src="https://unpkg.com/@2gis/mapgl-directions@^1/dist/directions.js"></script>

Or using NPM:

npm install @2gis/mapgl-directions

More...