Skip to main content

Advanced ETA


Available in CoPilot 10.9 and higher

Advanced ETA is a licensed add-on feature that allows you to compute ETA with greater accuracy to help keep drivers on schedule and to provide better delivery estimates for customers. Advanced ETA lets you include more information about each stop when generating a route, including:

  • Custom display information on the driver’s device. You can provide the driver with a custom note about the stop and a unique company ID and icon to identify the stop. You can also display custom information under the chevron that shows the driver where they are on the map.

  • Specialized routing settings. You can set side-of-street routing to ensure the route generated by CoPilot takes the driver to the stop on the same side of the street as the direction of travel.

  • Time-window settings. You can set a time window for the earliest and latest time a stop should be reached as well as a planned duration (dwell time) for the stop to enhance ETA for the following stop.

Create a Stop with StopBuilder

Advanced ETA settings are available through additional, optional methods when a stop is created via a StopBuilder object. The added methods include:

Method Name Return Type Description
Sets a custom ID for the stop.
Sets a custom note against the stop that will be shown on the stop details screen within the CoPilot UI.
setEarliestArrivalTime (ArrivalTimeWindowInfo)
Sets the earliest acceptable arrival time when the stop can be reached. If no date is given, the current date will be used. (There will be a callback notification if the ETA is outside of that time window.) This method is optional but, if used, setLatestArrivalTime and setPlannedDuration need to be used also.
setLatestArrivalTime (ArrivalTimeWindowInfo)
Sets the latest arrival time for the time window during which the stop should be reached. If no date is given, the current date will be used.
Sets the planned duration for the stop. This should reflect all the non-driving (dwell) time at the stop.
Sets side-of-street adherence for the stop.
setCustomFields (HashMap<String,String> customFields)
Sets custom fields for the stop.
Sets the stop icon image. Name of the image should be passed. An image with the matching name must be saved in the CoPilot directory under the “skin” folder.

Sample Code

Get Stop Information

The current ETA for the stop can be retrieved via additional methods in a Stop object. You can also get information entered about the stop, as well as additional information, such as the side of the street the stop is on. These methods include:

Method Name Return Type Description
Gets the Stop ID for the the stop object.
Gets the note associated with the stop object.
Gets the optional early time for the time window where a stop should be reached.
Gets the latest time for the time window where a stop should be reached.
getPlanned DurationMinutes()
Gets the expected Dwell/Wait time that is added to a stop.
Gets the side of the street that the stop is on.
Gets the side of street adherence level that the routing uses to calculate its route to this stop.
Gets the current ETA for this stop.
Gets a Hashmap of the optional custom fields for this stop.
Get the stop icon image name for the stop object.
Get time zone offset for the stop object.

Stay Informed About Arrival Times

With the additional stop information, Advanced ETA can calculate whether a driver is early, on time, late or at risk of being late for a stop. It can then create a callback when the driver’s stop status changes for a particular stop—for example, from “on time” to “at risk” of being late. The callback is also called when a new trip containing advanced ETA information is sent to CoPilot. CoPilot returns the status of each stop, and you should wait for this callback before retrieving the ETA from a stop.

The onStopArrivalStatusChange callback returns a list of stops who status have been changed.

If you would like to optimize your stop order to better meet all time windows, we recommend using our Advanced Route Optimization add-on feature.

Last updated November 23, 2021.