---
schema_version: "1"
id: acb29c47f7fdd8d685507a72f9e98e4242493719171e1d0be15ebbb77761518a
title: Specify Visit and Optimization Parameters
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/salesforce_maps_adv_visitplan_options.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.salesforce_maps_adv_visitplan_options.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 778dd6a36e86c58776735525c377f109bfbf32d48d7153fb362a18a460cb1697
description: Tailor routes in Salesforce Maps Advanced when you prevent scheduling more than one visit during a shift and limit the length of shifts. Specify maximum drive time between stops, and choose your preferred speed to optimize non-batched routes. Keep in mind, as a by-product of these constraints, optimizations can be less efficient and deliver fewer routes to reps.
products:
  - Sales
  - Salesforce Maps
release: "264"
---
# Specify Visit and Optimization Parameters

Tailor routes in Salesforce Maps Advanced when you prevent scheduling more than one visit during a shift and limit the length of shifts. Specify maximum drive time between stops, and choose your preferred speed to optimize non-batched routes. Keep in mind, as a by-product of these constraints, optimizations can be less efficient and deliver fewer routes to reps.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=sales.salesforce_maps_editions.htm&amp;release=264.0.0&amp;type=5" title="Identify supported Salesforce editions, user interfaces, and product areas.">View supported editions</a>.</td></tr></tbody></table>

For example, if you specify a 10-minute drive time between stops, it can postpone other customer visits that fall outside that 10-minute drive.

1. On the Maps Advanced Visit Plans tab, in the New Plan wizard, click **Set Additional Options**.
2. To help reps adhere to visit spacing requirements, ensure they visit customers one time during their shift. Set the option to prevent same shift visits, which is especially helpful for large volumes of accounts that require frequent visits.
    
    ![Set Additional Options page showing 15 minutes of maximum drive time between stops.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-sales-salesforce_maps-264-0-0-production-enus/2addcda4-01f0-4f47-83c5-f499a45bf555/salesforce_maps/images/visitoptions.png)
    
    For example, a customer requires daily visits, but the rep travels 2 days a week. This option schedules the rep to visit one time on each of those 2 days instead of scheduling multiple visits to that same customer on each of those 2 days.
3. To prevent reps or managers from scheduling themselves for more hours than allowed, enter the maximum hours they can schedule each day, including breaks.
    
    For example, you want to set a time buffer that allows reps to complete their visits each day, but you also want to control their overtime. You set Maximum Shift Length to 10 hours. In another example, you want to ensure that part-time employees aren’t scheduled for full days. You set Maximum Shift Length to 5 hours.
4. To reduce total travel time and promote clustering of visits, specify your recommended drive time in minutes.
    
    For example, your reps have customer locations spread throughout their territories and prefer to drive less between visits during the day. By setting a Preferred Maximum Drive Time Between Stops of 60 minutes, Salesforce Maps Advanced generates routes with customer visits close together, limiting drive time as much as possible.
5. To generate routes faster for non-batched optimizations, such as when a rep clicks **Plan My Visits** on the Maps Advanced Route tab, specify your preferred optimization time.
    
    Setting a maximum time can result in reduced route quality because Salesforce Maps Advanced has less time to find the most ideal routes.
6. Click **Next**.
    
    Confirm & Save appears in the visit plan wizard.