> For the complete documentation index, see [llms.txt](https://docs.maplytics.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maplytics.com/maplytics/azure-maps-google-maps-mapbox/features/routing-optimization/optimize-direction.md).

# Optimize Direction

This can be selected from the Options. This option will provide the users with the optimized route direction between their waypoints, keeping Origin & Destination as fixed waypoints based on Shortest Time or Shortest Distance as per the selection.

<figure><img src="/files/CWoJo3ub7zHjLVhAvjKm" alt="" width="392"><figcaption></figcaption></figure>

Once the user clicks on ‘Go,’ the route will be plotted, and the directions will be available on the Directions Card.

<figure><img src="/files/NbZorwCNy4QPLTFlp95T" alt=""><figcaption></figcaption></figure>

The user can view all the details regarding the pushpins on the route in the data grid. Each waypoint on the route will be represented by a pushpin. The user can hover or click on any pushpin to view the details of the waypoint. If the waypoints are records saved within Dynamics CRM, it will open the tooltip card on its click, showing the respective data configured for the tooltip card.

<figure><img src="/files/6sI6ysnh1B0jbsVIJysv" alt="" width="446"><figcaption></figcaption></figure>

<figure><img src="/files/Jiqt0aVK4sf5d7eyI5Oy" alt="" width="358"><figcaption></figcaption></figure>

The user can also choose to show or hide the layer of the route from the layer card.

**Add Waypoints**

Using the Add Waypoints option, a user can add records from any Entity to a route on the map as waypoints and reroute it.

<figure><img src="/files/pfI8rK2QQiMFFIfbOHgY" alt=""><figcaption></figcaption></figure>

A lookup table of records appears when selecting the desired entity. Records to be added as waypoints can be directly selected from the Lookup or after passing the relevant keyword in the search bar.

<figure><img src="/files/CFU7EJgGlUTWD7MW8JBs" alt=""><figcaption></figcaption></figure>

Once added, the record appears as a waypoint and gets added to the route on clicking Go. Multiple records can be added as waypoints in this manner.

<figure><img src="/files/Egjii4DjS9Cvll14TbqF" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/ISJZwpGq4xMhjkkAD0K2" alt=""><figcaption></figcaption></figure>

## Route Sharing: <a href="#route-sharing" id="route-sharing"></a>

Maplytics also helps the user to share a route in different ways.

**Send Route email:** Maplytics also helps the user to send the route details in an email using the ‘Send route email’ button. This will automatically fetch all the details of the route, like the account details, waypoints, links, etc., in the mail.

&#x20;Users can click on ‘Show Complete Route’ to see the entire route with all the waypoints or use the individual ‘Route link’ to see the routes between two waypoints. The user will be redirected to their preferred navigation app, Google, Waze, or Apple Maps, to visualize the route on the map based on the app selected in their Map Configuration Detail Record.

<figure><img src="/files/Zka3lRj4TKCsGPAPZTyV" alt="" width="418"><figcaption></figcaption></figure>

Users can click on ‘Show Complete Route’ to see the entire route with all the waypoints or use the individual ‘Route link’ to see the routes between two waypoints. The user will be redirected to their preferred navigation app, Google, Waze, or Apple Maps, to visualize the route on the map based on the app selected in their Map Configuration Detail Record.

<figure><img src="/files/NbUVTxqyUeQQWDcfW6xr" alt=""><figcaption></figcaption></figure>

Maplytics admin or System admin can add four more columns to the existing route table to view more details on the same. To do this, they can go to ***Maplytics App > Settings > Entity maps > Entity map of respective entity > Advanced Settings > Route Email Configuration > Attributes > Select Attributes > Add.***

<figure><img src="/files/UcyakkGVl7dLlD5iJDzj" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/LqkPCpVHOsEzGNLjJ8nm" alt=""><figcaption></figcaption></figure>

**Save Route:**

<figure><img src="/files/v1pyvMR6eFdi9LbcLYnY" alt="" width="411"><figcaption></figcaption></figure>

Users can also save their route plotted. The route record will also save the information like number of waypoints, total distance and time for the route. User can add the route to an existing route or save the route with a name & owner as a new rout&#x65;**.**

<figure><img src="/files/KqZw4DBZfRXU15OObYWR" alt="" width="268"><figcaption></figcaption></figure>

When a user clicks on the Owner option, a drop-down with all the team members and users within Maplytics will be visible. System generated data or members from other modules such as Field or Customer Service are not a part of the list. User can select a suitable owner and save the route successfully.

The user can also update any route using the ‘Update’ button. The user can search for routes existing in the required duration using the option of ‘Saved Routes’ and click on the ‘Update’ button for the required route.

<figure><img src="/files/ifvw0MbIh1pfLIAQCzGy" alt="" width="388"><figcaption></figcaption></figure>

<figure><img src="/files/a4rPU9akxCWFvG9QmBKu" alt="" width="335"><figcaption></figcaption></figure>

Users can add or remove waypoints within any of these saved routes as per requirement. When clicking on one of the route names, the map zooms in on it. The route that needs an edit can be clicked upon, and the details open on the map. Additional waypoints can be added or deleted from the route panel. Clicking on Go, the route reroutes itself and can be saved using the save button.

<figure><img src="/files/FETjXUbGwew69EhZD8VE" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/phHStfwjNukL81gLRu74" alt=""><figcaption></figcaption></figure>

Back on the Saved Route Card, the Update button can be clicked upon, and the changes shall be reflected in that respective route.

**Clear Route:**

The user can use the *Clear Route* button to clear the route from the map. This will just clear the route and directions card will still be opened for further use.

<figure><img src="/files/4860UHpsl5SN7GHbQRj6" alt="" width="395"><figcaption></figcaption></figure>

{% hint style="success" %}
For any queries, reach out to us at <crm@inogic.com>
{% endhint %}

**​**
