Click to enlarge |
Created a logistics ETA agent that utilizes two separate API's. This application was ran both as a front end for calculating an ETA of a single order, or in the background on a server running ETA calculations on all active orders.
An overview of the single order calculation can be viewed here:
The program was coded in C# in WPF. The program was passed an order number and from there it pulled in the order information including the truck GPS, driver hours of service, and shipment stops. The agent then calculated how much time would be spent driving to each shipment stop, how much time historically the driver stayed at that location (average dwell time), and also utilized the drivers available HOS (explained further below). It provided a running ETA for each stop in the order.
The application calculated and made sure that the driver's limited driving hours would be able to reach that destination or not. If the driver ran out of hours for that stop it added the required breaktime needed to reach that destination. For more information on a drivers' hour regulation please see the FMSCA rules found here: https://www.fmcsa.dot.gov/regulations/hours-service/summary-hours-service-regulations
The top half of the ETA agent utilizes the PC Miler DLL which documentation can be found here: https://support.pcmiler.com/en/support/solutions/19000100721
The other half uses the Google Distance Matrix API which documentation can be found here: https://developers.google.com/maps/documentation/distance-matrix/start
This program could be run at an interval on a server to continuously check the ETA's of any company's active orders. Such a process was used by my next application the Load Board.
Comments
Post a Comment