Delivery Route Optimization Dataset
This dataset provides comprehensive synthetic records of last-mile delivery routes, including geospatial coordinates, stop sequences, package details, resource allocation, and contextual factors like weather and traffic. It is optimized for machine learning applications in route recommendation, delay prediction, and logistics resource planning, supporting both operational analytics and AI-driven optimization.
Sample rows
preview · 8 of 200 rows · all 28 columns| route_idstring | resource_typestring | package_weight_kgfloat | stop_statestring | vehicle_idstring | driver_idstring | route_datedate | route_start_timedatetime | route_end_timedatetime | total_stopsinteger | route_distance_kmfloat | route_duration_minutesfloat | stop_idstring | stop_sequenceinteger | stop_scheduled_timedatetime | stop_actual_timedatetime | delay_minutesfloat | stop_latitudefloat | stop_longitudefloat | stop_street_addressstring | stop_citystring | stop_postal_codestring | stop_countrystring | package_idstring | package_volume_m3float | delivery_statusstring | weather_conditionstring | traffic_conditionstring |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| R001 | van | 2.8 | NY | V001 | D001 | 2024-05-01 | 2024-05-01T08:00:00 | 2024-05-01T10:15:00 | 3 | 18.4 | 135 | S001 | 1 | 2024-05-01T08:30:00 | 2024-05-01T08:33:00 | 3 | 40.7128 | -74.006 | 123 Broadway Ave | New York | 10007 | USA | P001 | 0.07 | delivered | cloudy | moderate |
| R001 | van | 7.2 | NY | V001 | D001 | 2024-05-01 | 2024-05-01T08:00:00 | 2024-05-01T10:15:00 | 3 | 18.4 | 135 | S002 | 2 | 2024-05-01T09:00:00 | 2024-05-01T09:09:00 | 9 | 40.7306 | -73.9866 | 456 5th Ave | New York | 10010 | USA | P002 | 0.15 | delivered | cloudy | heavy |
| R001 | van | 1.5 | NY | V001 | D001 | 2024-05-01 | 2024-05-01T08:00:00 | 2024-05-01T10:15:00 | 3 | 18.4 | 135 | S003 | 3 | 2024-05-01T10:00:00 | blank | blank | 40.7498 | -73.9876 | 789 Madison St | New York | 10016 | USA | P003 | 0.04 | pending | rain | moderate |
| R002 | van | 1.1 | IDF | V002 | D002 | 2024-05-02 | 2024-05-02T07:30:00 | 2024-05-02T09:05:00 | 2 | 11.2 | 95 | S004 | 1 | 2024-05-02T08:00:00 | 2024-05-02T08:04:00 | 4 | 48.8566 | 2.3522 | 12 Rue de Rivoli | Paris | 75001 | France | P004 | 0.03 | delivered | clear | light |
| R002 | van | 2.6 | IDF | V002 | D002 | 2024-05-02 | 2024-05-02T07:30:00 | 2024-05-02T09:05:00 | 2 | 11.2 | 95 | S005 | 2 | 2024-05-02T09:00:00 | 2024-05-02T09:02:00 | 2 | 48.8708 | 2.3042 | 5 Avenue Montaigne | Paris | 75008 | France | P005 | 0.08 | delivered | cloudy | light |
| R003 | truck | 78.6 | Tōkyō | V003 | D003 | 2024-05-03 | 2024-05-03T06:00:00 | 2024-05-03T20:00:00 | 2 | 1100.7 | 840 | S006 | 1 | 2024-05-03T12:30:00 | 2024-05-03T13:54:00 | 84 | 35.6895 | 139.6917 | 1 Chiyoda | Tokyo | 100-0001 | Japan | P006 | 0.9 | delivered | fog | heavy |
| R003 | truck | 59.3 | Tōkyō | V003 | D003 | 2024-05-03 | 2024-05-03T06:00:00 | 2024-05-03T20:00:00 | 2 | 1100.7 | 840 | S007 | 2 | 2024-05-03T19:30:00 | 2024-05-03T20:15:00 | 45 | 35.6762 | 139.6503 | 22 Shibuya | Tokyo | 150-0002 | Japan | P007 | 0.7 | returned | rain | blocked |
| R004 | bike | 5.3 | ENG | V004 | D004 | 2024-05-04 | 2024-05-04T09:15:00 | 2024-05-04T12:00:00 | 4 | 28.2 | 165 | S008 | 1 | 2024-05-04T09:40:00 | 2024-05-04T09:38:00 | -2 | 51.5074 | -0.1278 | 14 Oxford St | London | W1D 1BS | UK | P008 | 0.11 | delivered | clear | light |
| R004 | bike | 7.8 | ENG | V004 | D004 | 2024-05-04 | 2024-05-04T09:15:00 | 2024-05-04T12:00:00 | 4 | 28.2 | 165 | S009 | 2 | 2024-05-04T10:10:00 | 2024-05-04T10:12:00 | 2 | 51.5155 | -0.1421 | 75 Regent St | London | W1B 5RL | UK | P009 | 0.18 | delivered | rain | moderate |
| R004 | bike | 3.4 | ENG | V004 | D004 | 2024-05-04 | 2024-05-04T09:15:00 | 2024-05-04T12:00:00 | 4 | 28.2 | 165 | S010 | 3 | 2024-05-04T11:00:00 | 2024-05-04T11:15:00 | 15 | 51.5007 | -0.1246 | 1 Parliament Sq | London | SW1P 3JX | UK | P010 | 0.06 | failed | rain | blocked |
| R004 | bike | 2 | ENG | V004 | D004 | 2024-05-04 | 2024-05-04T09:15:00 | 2024-05-04T12:00:00 | 4 | 28.2 | 165 | S011 | 4 | 2024-05-04T11:45:00 | blank | blank | 51.5285 | -0.1337 | 22 Camden High St | London | NW1 0JH | UK | P011 | 0.05 | pending | cloudy | light |
| R005 | truck | 38.9 | TDF | V005 | D005 | 2024-05-05 | 2024-05-05T10:00:00 | 2024-05-05T10:50:00 | 1 | 0.6 | 50 | S012 | 1 | 2024-05-05T10:30:00 | 2024-05-05T10:40:00 | 10 | -54.8019 | -68.303 | 101 Maipú | Ushuaia | V9410 | Argentina | P012 | 0.4 | returned | snow | blocked |
| R006 | van | 6.7 | CABA | V006 | D006 | 2024-05-06 | 2024-05-06T15:00:00 | 2024-05-06T17:15:00 | 2 | 12.3 | 135 | S013 | 1 | 2024-05-06T15:30:00 | 2024-05-06T15:32:00 | 2 | -34.6037 | -58.3816 | 203 Florida St | Buenos Aires | C1005 | Argentina | P013 | 0.13 | delivered | rain | moderate |
| R006 | van | 2.3 | CABA | V006 | D006 | 2024-05-06 | 2024-05-06T15:00:00 | 2024-05-06T17:15:00 | 2 | 12.3 | 135 | S014 | 2 | 2024-05-06T16:45:00 | blank | blank | -34.6046 | -58.3838 | 11 Corrientes Ave | Buenos Aires | C1043 | Argentina | P014 | 0.04 | pending | clear | light |
| R007 | van | 1.8 | MOW | V007 | D007 | 2024-05-07 | 2024-05-07T11:00:00 | 2024-05-07T12:10:00 | 2 | 7.1 | 70 | S015 | 1 | 2024-05-07T11:25:00 | 2024-05-07T11:26:00 | 1 | 55.7558 | 37.6173 | 50 Tverskaya St | Moscow | 101000 | Russia | P015 | 0.05 | delivered | cloudy | moderate |
| R007 | van | 3.2 | MOW | V007 | D007 | 2024-05-07 | 2024-05-07T11:00:00 | 2024-05-07T12:10:00 | 2 | 7.1 | 70 | S016 | 2 | 2024-05-07T11:55:00 | 2024-05-07T12:03:00 | 8 | 55.7601 | 37.6187 | 9 Arbat St | Moscow | 119019 | Russia | P016 | 0.09 | delivered | rain | heavy |
| R008 | truck | 84.1 | CDMX | V008 | D008 | 2024-05-08 | 2024-05-08T13:30:00 | 2024-05-08T17:50:00 | 2 | 1300.4 | 260 | S017 | 1 | 2024-05-08T14:40:00 | 2024-05-08T15:30:00 | 50 | 19.4326 | -99.1332 | 33 Reforma | Mexico City | 01000 | Mexico | P017 | 1.3 | failed | storm | blocked |
| R008 | truck | 22.5 | CDMX | V008 | D008 | 2024-05-08 | 2024-05-08T13:30:00 | 2024-05-08T17:50:00 | 2 | 1300.4 | 260 | S018 | 2 | 2024-05-08T17:20:00 | blank | blank | 19.4285 | -99.1277 | 77 Insurgentes | Mexico City | 03020 | Mexico | P018 | 0.35 | pending | rain | heavy |
| R009 | van | 0 | AK | V009 | D009 | 2024-05-09 | 2024-05-09T08:40:00 | 2024-05-09T10:00:00 | 1 | 0.2 | 80 | S019 | 1 | 2024-05-09T09:10:00 | 2024-05-09T09:25:00 | 15 | 71.2906 | -156.7887 | 22 Arctic Ave | Barrow | 99723 | USA | P019 | 0 | failed | snow | blocked |
| R010 | car | 4.1 | IDF | V010 | D010 | 2024-05-10 | 2024-05-10T17:00:00 | 2024-05-10T18:30:00 | 3 | 16.5 | 90 | S020 | 1 | 2024-05-10T17:20:00 | 2024-05-10T17:18:00 | -2 | 48.8584 | 2.2945 | 7 Champs-Élysées | Paris | 75008 | France | P020 | 0.08 | delivered | fog | moderate |
What the 200 rows show
from the 200-row sampleTruck (resource type) stands out: mean package_
- 5.3median package_
weight_ kg - 4delivery statuses
- 4traffic conditions
- 6weather conditions
- 9stop countries
- 13stop cities
Median 5.3, from 0.0 to 92.6.
- string 14
- integer 2
- float 7
- date 1
- datetime 4
Columns
28 columns in three groups| column | type | description | example |
|---|---|---|---|
| Text 14 columns | |||
route_id | string | Unique identifier for each delivery routeunique | R001 |
vehicle_id | string | Unique identifier for the delivery vehicle assigned to the route | V001 |
driver_id | string | Unique identifier for the driver assigned to the route | D001 |
stop_id | string | Unique identifier for each delivery stopunique | S001 |
stop_street_address | string | Street address of the delivery stop | 123 Broadway Ave |
stop_city | string | City of the delivery stop | New York |
stop_state | string | State or region of the delivery stop | NY |
stop_postal_code | string | Postal code of the delivery stop | 10007 |
stop_country | string | Country of the delivery stop9 countries | USA |
package_id | string | Unique identifier for the package delivered at the stop | P001 |
delivery_status | string | Status of the delivery at the stopdelivered · failed · pending · returned | delivered |
resource_type | string | Type of resource allocated for the route (e.g., vehicle type)van · truck · bike · car · optional | van |
weather_condition | string | Weather condition during delivery at the stop6 values · optional | cloudy |
traffic_condition | string | Traffic condition during delivery at the stoplight · moderate · heavy · blocked · optional | moderate |
| Numbers 9 columns | |||
total_stops | integer | Total number of delivery stops in the route1 or more | 3 |
route_distance_km | float | Total distance of the route in kilometers0 or more | 18.4 |
route_duration_minutes | float | Estimated duration of the route in minutes0 or more | 135 |
stop_sequence | integer | Order of the stop in the route (1 = first stop)1 or more | 1 |
delay_minutes | float | Delay in minutes at the stop (actual - scheduled)optional | 3 |
stop_latitude | float | Latitude coordinate of the delivery stop-90 to 90 | 40.7128 |
stop_longitude | float | Longitude coordinate of the delivery stop-180 to 180 | -74.006 |
package_weight_kg | float | Weight of the package in kilograms0 or more | 2.8 |
package_volume_m3 | float | Volume of the package in cubic meters0 or more · optional | 0.07 |
| Dates and times 5 columns | |||
route_date | date | Date when the delivery route is scheduled | 2024-05-01 |
route_start_time | datetime | Scheduled start time for the delivery route | 2024-05-01T08:00:00 |
route_end_time | datetime | Scheduled end time for the delivery routeoptional | 2024-05-01T10:15:00 |
stop_scheduled_time | datetime | Scheduled arrival time at the stop | 2024-05-01T08:30:00 |
stop_actual_time | datetime | Actual arrival time at the stopoptional | 2024-05-01T08:33:00 |
15 SQL practice questions for the Delivery Route Optimization Dataset
Written for this data and checked against it: 12 SQL and 3 Power BI exercises from beginner to advanced. Try the first three free; the practice kit has all 15, a starter .sql file and an answer key with every expected result.
Failed deliveries list
List every stop whose delivery_status is 'failed'. Return the columns stop_id, route_id, stop_city and package_weight_kg, ordered by stop_id and then route_id.
Tables: delivery_route_optimization_dataset · your result: 4 columns, 20 rowsDistinct cities and countries
Return each distinct combination of stop_country and stop_city. Return the columns stop_country and stop_city, ordered by stop_country and then stop_city.
Tables: delivery_route_optimization_dataset · your result: 2 columns, 13 rowsStops per delivery status
Count the stops for each delivery_status. Return the columns delivery_status and stop_count, ordered by stop_count descending and then by delivery_status.
Tables: delivery_route_optimization_dataset · your result: 2 columns, 4 rows
- 04Average weight by vehicle typeBeginner
- 05Average delay by traffic conditionPower BI
- 06Countries with many late stopsIntermediate
- 07Delay bucketsIntermediate
- 08Stops and distance by monthIntermediate
- 09Cities slower than overall averageIntermediate
- 10Failure rate by weather conditionPower BI
- 11Rank cities by delay within countryAdvanced
- 12Delay change versus previous stopAdvanced
- 13Running package weight by dateAdvanced
- 14Share of weight by countryAdvanced
- 15Most delayed stop per countryPower BI
Get the practice kit: the full dataset, all 15 exercises, a starter .sql and the answer key. One-time $3.99.
Get the practice kit · $3.99Use it for
A logistics dashboard
Package_
weight_ kg by resource_ type and a breakdown of stop_ state. Excel, Power BI or Tableau. Why do the 38 truck rows have a mean package_
weight_ kg of 43.4? A root-cause class exercise
Hand out the rows and one question. The answer is in the data, not in the brief.
- Routes200R0012.8vanR0017.2vanR0011.5van
A software demo
Believable routes with vehicle_
id, driver_ id and route_ date to fill a screen in front of a buyer.
blueprint · delivery-route-optimization-dataset
Behind this dataset
Same schema. As many rows as you need.
These 200 rows came out of a blueprint — 28 columns with generation rules behind each one. Open it in Data Factory to retune a column, add your own, wire in foreign keys, and run it at the size you actually need.
- Routes must contain geolocation points
- Include traffic and weather features
- Simulate peak and off-peak scenarios
- Label delivery success and delays
- Vary vehicle types and capacities
1 credit per row. Preview 20 rows free. Buy rows for the full run.
- Exports
- CSV, JSON, JSONL, Parquet, SQL, Excel, TSV, XML
- Licence
- yours to use, including commercially
- API slug
- delivery-route-optimization-dataset