Getting Started

This guide provides an overview of the initial stages of using the Route4Me API, including creating your first optimization problem and managing your first routes.

Create an Optimization

Optimization refers to a collection of destinations that need to be visited.

An Optimization Problem, then, is a collection of destinations that need to be arranged into one or more routes to be visited. It considers all the addresses that need to be visited and all the constraints associated with each destination, address, and depot.

We recommend creating optimization problems with as many destinations as possible to allow the optimization engine to consider the entire problem set.

Optimization differs from a Route, which is a sequence of addresses that need to be visited by a single vehicle and driver within a fixed period. Solving an optimization problem results in one or more routes, which may recur in the future.

The primary way to define an address is through a latitude/longitude pair, which is also the most precise and reliable method. A street address is a close second.

So, to create your first optimization, you will need a set of addresses, each represented by a latitude/longitude pair or a street address.

This guide will use 15 addresses represented by latitude/longitude pairs. We'll leave the depot unspecified, and the system will assume it is the first destination in the list. Additionally, we will set the route_max_duration to 30 minutes (1800 seconds). Replace the API key placeholder 11111111111111111111111111111111 with your API key, and this request will work:

curl --request POST \
     --url 'https://api.route4me.com/api.v4/optimization_problem.php?api_key=11111111111111111111111111111111' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "parameters": {
    "route_max_duration": 1800
  },
  "addresses": [
    {
      "lat": 52.373066,
      "lng": 4.856445
    },
    {
      "lat": 52.281774,
      "lng": 4.828886
    },
    {
      "lat": 52.355059,
      "lng": 4.855051
    },
    {
      "lat": 52.355059,
      "lng": 4.855051
    },
    {
      "lat": 52.351536,
      "lng": 5.007007
    },
    {
      "lat": 52.360651,
      "lng": 4.993203
    },
    {
      "lat": 52.375203,
      "lng": 4.882226
    },
    {
      "lat": 52.36068,
      "lng": 4.855828
    },
    {
      "lat": 52.371708,
      "lng": 4.937041
    },
    {
      "lat": 52.371708,
      "lng": 4.937041
    },
    {
      "lat": 52.357168,
      "lng": 4.946456
    },
    {
      "lat": 52.32816,
      "lng": 4.961257
    },
    {
      "lat": 52.38003,
      "lng": 4.857972
    },
    {
      "lat": 52.328816,
      "lng": 4.95593
    },
    {
      "lat": 52.329394,
      "lng": 4.955335
    }
  ]
}
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"parameters\":{\"route_max_duration\":1799},\"addresses\":[{\"lat\":52.373066,\"lng\":4.856445},{\"lat\":52.281774,\"lng\":4.828886},{\"lat\":52.355059,\"lng\":4.855051},{\"lat\":52.355059,\"lng\":4.855051},{\"lat\":52.351536,\"lng\":5.007007},{\"lat\":52.360651,\"lng\":4.993203},{\"lat\":52.375203,\"lng\":4.882226},{\"lat\":52.36068,\"lng\":4.855828},{\"lat\":52.371708,\"lng\":4.937041},{\"lat\":52.371708,\"lng\":4.937041},{\"lat\":52.357168,\"lng\":4.946456},{\"lat\":52.32816,\"lng\":4.961257},{\"lat\":52.38003,\"lng\":4.857972},{\"lat\":52.328816,\"lng\":4.95593},{\"lat\":52.329394,\"lng\":4.955335}]}");
Request request = new Request.Builder()
  .url("https://api.route4me.com/api.v4/optimization_problem.php?api_key=11111111111111111111111111111111")
  .post(body)
  .addHeader("accept", "application/json")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
using RestSharp;


var options = new RestClientOptions("https://api.route4me.com/api.v4/optimization_problem.php?api_key=11111111111111111111111111111111");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("accept", "application/json");
request.AddJsonBody("{\"parameters\":{\"route_max_duration\":1799},\"addresses\":[{\"lat\":52.373066,\"lng\":4.856445},{\"lat\":52.281774,\"lng\":4.828886},{\"lat\":52.355059,\"lng\":4.855051},{\"lat\":52.355059,\"lng\":4.855051},{\"lat\":52.351536,\"lng\":5.007007},{\"lat\":52.360651,\"lng\":4.993203},{\"lat\":52.375203,\"lng\":4.882226},{\"lat\":52.36068,\"lng\":4.855828},{\"lat\":52.371708,\"lng\":4.937041},{\"lat\":52.371708,\"lng\":4.937041},{\"lat\":52.357168,\"lng\":4.946456},{\"lat\":52.32816,\"lng\":4.961257},{\"lat\":52.38003,\"lng\":4.857972},{\"lat\":52.328816,\"lng\":4.95593},{\"lat\":52.329394,\"lng\":4.955335}]}", false);
var response = await client.PostAsync(request);

Console.WriteLine("{0}", response.Content);
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.route4me.com/api.v4/optimization_problem.php?api_key=11111111111111111111111111111111', [
  'body' => '{"parameters":{"route_max_duration":1800},"addresses":[{"lat":52.373066,"lng":4.856445},{"lat":52.281774,"lng":4.828886},{"lat":52.355059,"lng":4.855051},{"lat":52.355059,"lng":4.855051},{"lat":52.351536,"lng":5.007007},{"lat":52.360651,"lng":4.993203},{"lat":52.375203,"lng":4.882226},{"lat":52.36068,"lng":4.855828},{"lat":52.371708,"lng":4.937041},{"lat":52.371708,"lng":4.937041},{"lat":52.357168,"lng":4.946456},{"lat":52.32816,"lng":4.961257},{"lat":52.38003,"lng":4.857972},{"lat":52.328816,"lng":4.95593},{"lat":52.329394,"lng":4.955335}]}',
  'headers' => [
    'accept' => 'application/json',
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
import requests

url = "https://api.route4me.com/api.v4/optimization_problem.php?api_key=11111111111111111111111111111111"

payload = {
    "parameters": { "route_max_duration": 1800 },
    "addresses": [
        {
            "lat": 52.373066,
            "lng": 4.856445
        },
        {
            "lat": 52.281774,
            "lng": 4.828886
        },
        {
            "lat": 52.355059,
            "lng": 4.855051
        },
        {
            "lat": 52.355059,
            "lng": 4.855051
        },
        {
            "lat": 52.351536,
            "lng": 5.007007
        },
        {
            "lat": 52.360651,
            "lng": 4.993203
        },
        {
            "lat": 52.375203,
            "lng": 4.882226
        },
        {
            "lat": 52.36068,
            "lng": 4.855828
        },
        {
            "lat": 52.371708,
            "lng": 4.937041
        },
        {
            "lat": 52.371708,
            "lng": 4.937041
        },
        {
            "lat": 52.357168,
            "lng": 4.946456
        },
        {
            "lat": 52.32816,
            "lng": 4.961257
        },
        {
            "lat": 52.38003,
            "lng": 4.857972
        },
        {
            "lat": 52.328816,
            "lng": 4.95593
        },
        {
            "lat": 52.329394,
            "lng": 4.955335
        }
    ]
}
headers = {
    "accept": "application/json",
    "content-type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const sdk = require('api')('@r4m/v1#1qz7y18lt75whhp');

sdk.auth('11111111111111111111111111111111');
sdk.postOptimization_problemPhp({
  parameters: {route_max_duration: 1800},
  addresses: [
    {lat: 52.373066, lng: 4.856445},
    {lat: 52.281774, lng: 4.828886},
    {lat: 52.355059, lng: 4.855051},
    {lat: 52.355059, lng: 4.855051},
    {lat: 52.351536, lng: 5.007007},
    {lat: 52.360651, lng: 4.993203},
    {lat: 52.375203, lng: 4.882226},
    {lat: 52.36068, lng: 4.855828},
    {lat: 52.371708, lng: 4.937041},
    {lat: 52.371708, lng: 4.937041},
    {lat: 52.357168, lng: 4.946456},
    {lat: 52.32816, lng: 4.961257},
    {lat: 52.38003, lng: 4.857972},
    {lat: 52.328816, lng: 4.95593},
    {lat: 52.329394, lng: 4.955335}
  ]
})
  .then(({ data }) => console.log(data))
  .catch(err => console.error(err));
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.route4me.com/api.v4/optimization_problem.php?api_key=11111111111111111111111111111111"

	payload := strings.NewReader("{\"parameters\":{\"route_max_duration\":1800},\"addresses\":[{\"lat\":52.373066,\"lng\":4.856445},{\"lat\":52.281774,\"lng\":4.828886},{\"lat\":52.355059,\"lng\":4.855051},{\"lat\":52.355059,\"lng\":4.855051},{\"lat\":52.351536,\"lng\":5.007007},{\"lat\":52.360651,\"lng\":4.993203},{\"lat\":52.375203,\"lng\":4.882226},{\"lat\":52.36068,\"lng\":4.855828},{\"lat\":52.371708,\"lng\":4.937041},{\"lat\":52.371708,\"lng\":4.937041},{\"lat\":52.357168,\"lng\":4.946456},{\"lat\":52.32816,\"lng\":4.961257},{\"lat\":52.38003,\"lng\":4.857972},{\"lat\":52.328816,\"lng\":4.95593},{\"lat\":52.329394,\"lng\":4.955335}]}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("accept", "application/json")
	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}

The response to this request will resemble the following:

{
  "optimization_problem_id": "AA4062A4F594B5DB3837AC636279EE24",
  "smart_optimization_id": null,
  "user_errors": [],
  "optimization_errors": [],
  "state": 4,
  "created_timestamp": 1709726799,
  "scheduled_for": 1709708400,
  "optimization_completed_timestamp": null,
  "parameters": {
    "is_upload": false,
    "rt": false,
    "route_name": "Wed, 06 Mar 2024 12:06:38 +0000 UTC",
    "route_date": 1709683200,
    "route_time": 25200,
    "shared_publicly": false,
    "disable_optimization": false,
    "optimize": "Time",
    "lock_last": false,
    "vehicle_capacity": null,
    "vehicle_max_cargo_weight": null,
    "vehicle_max_cargo_volume": null,
    "vehicle_max_distance_mi": null,
    "subtour_max_revenue": null,
    "distance_unit": "mi",
    "travel_mode": "Driving",
    "avoid": "",
    "avoidance_zones": [],
    "vehicle_id": null,
    "driver_id": null,
    "dev_lat": null,
    "dev_lng": null,
    "route_max_duration": 1800,
    "route_email": null,
    "store_route": true,
    "metric": 4,
    "algorithm_type": 100,
    "member_id": 1053088,
    "ip": 1602858388,
    "dm": 12,
    "dirm": 10,
    "parts": 10,
    "parts_min": 1,
    "device_id": "",
    "device_type": "web",
    "first_drive_then_wait_between_stops": false,
    "has_trailer": false,
    "trailer_weight_t": null,
    "limited_weight_t": null,
    "weight_per_axle_t": null,
    "truck_height": null,
    "truck_width": null,
    "truck_length": null,
    "truck_hazardous_goods": "",
    "truck_axles": 0,
    "truck_toll_road_usage": null,
    "truck_avoid_ferries": null,
    "truck_hwy_only": null,
    "truck_lcv": null,
    "truck_borders": null,
    "truck_side_street_adherence": null,
    "truck_config": null,
    "truck_dim_unit": null,
    "truck_type": null,
    "truck_weight": 0,
    "optimization_quality": 1,
    "override_addresses": {},
    "max_tour_size": null,
    "min_tour_size": 0,
    "uturn": 1,
    "leftturn": 1,
    "rightturn": 1,
    "route_time_multiplier": null,
    "route_service_time_multiplier": null,
    "optimization_engine": "2",
    "is_dynamic_start_time": false,
    "is_amp": true
  },
  "sent_to_background": false,
  "addresses": [
    {
      "route_destination_id": 1100583657,
      "alias": "",
      "member_id": 1053088,
      "address": "Stop #1",
      "is_depot": true,
      "timeframe_violation_state": null,
      "timeframe_violation_time": 0,
      "timeframe_violation_rate": 0,
      "lat": 52.373066,
      "lng": 4.856445,
      "curbside_lat": 52.373066,
      "curbside_lng": 4.856445,
      "priority": null,
      "route_id": null,
      "original_route_id": null,
      "route_name": null,
      "optimization_problem_id": "AA4062A4F594B5DB3837AC636279EE24",
      "sequence_no": 0,
      "geocoded": false,
      "preferred_geocoding": null,
      "failed_geocoding": false,
      "geocodings": [],
      "contact_id": null,
      "order_id": null,
      "order_uuid": null,
      "address_stop_type": null,
      "is_visited": false,
      "timestamp_last_visited": null,
      "visited_lat": null,
      "visited_lng": null,
      "is_departed": false,
      "departed_lat": null,
      "departed_lng": null,
      "timestamp_last_departed": null,
      "group": null,
      "customer_po": null,
      "invoice_no": null,
      "reference_no": null,
      "order_no": null,
      "weight": 0,
      "cost": 0,
      "revenue": 0,
      "cube": 0,
      "pieces": 0,
      "first_name": null,
      "last_name": null,
      "email": null,
      "phone": null,
      "destination_note_count": 0,
      "drive_time_to_next_destination": null,
      "abnormal_traffic_time_to_next_destination": null,
      "uncongested_time_to_next_destination": null,
      "traffic_time_to_next_destination": null,
      "distance_to_next_destination": null,
      "channel_name": "17672b7bdf0d7bbbc54286160f4ba321",
      "pickup": null,
      "dropoff": null,
      "joint": null,
      "generated_time_window_start": null,
      "generated_time_window_end": null,
      "time_window_start": null,
      "time_window_end": null,
      "time_window_start_2": null,
      "time_window_end_2": null,
      "geofence_detected_visited_timestamp": null,
      "geofence_detected_departed_timestamp": null,
      "geofence_detected_service_time": null,
      "geofence_detected_visited_lat": null,
      "geofence_detected_visited_lng": null,
      "geofence_detected_departed_lat": null,
      "geofence_detected_departed_lng": null,
      "geofence_local_visited_timestamp": null,
      "geofence_local_visited_lat": null,
      "geofence_local_visited_lng": null,
      "geofence_local_departed_timestamp": null,
      "geofence_local_departed_lat": null,
      "geofence_local_departed_lng": null,
      "geofence_local_service_time": null,
      "time": 0,
      "tracking_number": null,
      "custom_fields": {},
      "custom_fields_str_json": "{}",
      "custom_fields_config": null,
      "custom_fields_config_str_json": "null",
      "notes": [],
      "bundle_count": 0,
      "bundle_items": null,
      "order_inventory": null,
      "required_skills": [],
      "additional_status": null,
      "workflow_uuid": null,
      "invalid_sequence": {
        "detected": false,
        "event_timestamp": 0,
        "actual_sequence_no": null,
        "expected_sequence_no": null,
        "revision_count": null
      }
    },
    {
      "route_destination_id": 1100583658,
      "alias": "",
      "member_id": 1053088,
      "address": "Stop #2",
      "is_depot": false,
      "timeframe_violation_state": null,
      "timeframe_violation_time": 0,
      "timeframe_violation_rate": 0,
      "lat": 52.281774,
      "lng": 4.828886,
      "curbside_lat": 52.281774,
      "curbside_lng": 4.828886,
      "priority": null,
      "route_id": "5EB1EDFFE9855276BC12BC85D247B3B9",
      "original_route_id": null,
      "optimization_problem_id": "AA4062A4F594B5DB3837AC636279EE24",
      "sequence_no": 1,
      "geocoded": false,
      "preferred_geocoding": null,
      "failed_geocoding": false,
      "geocodings": [],
      "contact_id": null,
      "order_id": null,
      "order_uuid": null,
      "address_stop_type": "DELIVERY",
      "is_visited": false,
      "timestamp_last_visited": null,
      "visited_lat": null,
      "visited_lng": null,
      "is_departed": false,
      "departed_lat": null,
      "departed_lng": null,
      "timestamp_last_departed": null,
      "group": null,
      "customer_po": null,
      "invoice_no": null,
      "reference_no": null,
      "order_no": null,
      "weight": 0,
      "cost": 0,
      "revenue": 0,
      "cube": 0,
      "pieces": 1,
      "first_name": null,
      "last_name": null,
      "email": null,
      "phone": null,
      "destination_note_count": 0,
      "drive_time_to_next_destination": 720,
      "abnormal_traffic_time_to_next_destination": null,
      "uncongested_time_to_next_destination": null,
      "traffic_time_to_next_destination": null,
      "distance_to_next_destination": 8.33,
      "channel_name": "d8fb27a38a57296b7427284e07871976",
      "pickup": null,
      "dropoff": null,
      "joint": null,
      "generated_time_window_start": null,
      "generated_time_window_end": null,
      "time_window_start": null,
      "time_window_end": null,
      "time_window_start_2": null,
      "time_window_end_2": null,
      "geofence_detected_visited_timestamp": null,
      "geofence_detected_departed_timestamp": null,
      "geofence_detected_service_time": null,
      "geofence_detected_visited_lat": null,
      "geofence_detected_visited_lng": null,
      "geofence_detected_departed_lat": null,
      "geofence_detected_departed_lng": null,
      "geofence_local_visited_timestamp": null,
      "geofence_local_visited_lat": null,
      "geofence_local_visited_lng": null,
      "geofence_local_departed_timestamp": null,
      "geofence_local_departed_lat": null,
      "geofence_local_departed_lng": null,
      "geofence_local_service_time": null,
      "time": 0,
      "tracking_number": "NP17QN9Z",
      "custom_fields": {},
      "custom_fields_str_json": "{}",
      "custom_fields_config": null,
      "custom_fields_config_str_json": "null",
      "notes": [],
      "bundle_count": 0,
      "bundle_items": null,
      "order_inventory": null,
      "required_skills": [],
      "additional_status": null,
      "workflow_uuid": null,
      "invalid_sequence": {
        "detected": false,
        "event_timestamp": 0,
        "actual_sequence_no": null,
        "expected_sequence_no": null,
        "revision_count": null
      }
    },
    {
      "route_destination_id": 1100583659,
      "alias": "",
      "member_id": 1053088,
      "address": "Stop #3",
      "is_depot": false,
      "timeframe_violation_state": null,
      "timeframe_violation_time": 0,
      "timeframe_violation_rate": 0,
      "lat": 52.355059,
      "lng": 4.855051,
      "curbside_lat": 52.355059,
      "curbside_lng": 4.855051,
      "priority": null,
      "route_id": "5EB1EDFFE9855276BC12BC85D247B3B9",
      "original_route_id": null,
      "optimization_problem_id": "AA4062A4F594B5DB3837AC636279EE24",
      "sequence_no": 2,
      "geocoded": false,
      "preferred_geocoding": null,
      "failed_geocoding": false,
      "geocodings": [],
      "contact_id": null,
      "order_id": null,
      "order_uuid": null,
      "address_stop_type": "DELIVERY",
      "is_visited": false,
      "timestamp_last_visited": null,
      "visited_lat": null,
      "visited_lng": null,
      "is_departed": false,
      "departed_lat": null,
      "departed_lng": null,
      "timestamp_last_departed": null,
      "group": null,
      "customer_po": null,
      "invoice_no": null,
      "reference_no": null,
      "order_no": null,
      "weight": 0,
      "cost": 0,
      "revenue": 0,
      "cube": 0,
      "pieces": 1,
      "first_name": null,
      "last_name": null,
      "email": null,
      "phone": null,
      "destination_note_count": 0,
      "drive_time_to_next_destination": 0,
      "abnormal_traffic_time_to_next_destination": null,
      "uncongested_time_to_next_destination": null,
      "traffic_time_to_next_destination": null,
      "distance_to_next_destination": 0,
      "channel_name": "df760656d33b1145524a22343fa03707",
      "pickup": null,
      "dropoff": null,
      "joint": null,
      "generated_time_window_start": null,
      "generated_time_window_end": null,
      "time_window_start": null,
      "time_window_end": null,
      "time_window_start_2": null,
      "time_window_end_2": null,
      "geofence_detected_visited_timestamp": null,
      "geofence_detected_departed_timestamp": null,
      "geofence_detected_service_time": null,
      "geofence_detected_visited_lat": null,
      "geofence_detected_visited_lng": null,
      "geofence_detected_departed_lat": null,
      "geofence_detected_departed_lng": null,
      "geofence_local_visited_timestamp": null,
      "geofence_local_visited_lat": null,
      "geofence_local_visited_lng": null,
      "geofence_local_departed_timestamp": null,
      "geofence_local_departed_lat": null,
      "geofence_local_departed_lng": null,
      "geofence_local_service_time": null,
      "time": 0,
      "tracking_number": "XE0PK2M9",
      "custom_fields": {},
      "custom_fields_str_json": "{}",
      "custom_fields_config": null,
      "custom_fields_config_str_json": "null",
      "notes": [],
      "bundle_count": 0,
      "bundle_items": null,
      "order_inventory": null,
      "required_skills": [],
      "additional_status": null,
      "workflow_uuid": null,
      "invalid_sequence": {
        "detected": false,
        "event_timestamp": 0,
        "actual_sequence_no": null,
        "expected_sequence_no": null,
        "revision_count": null
      }
    },
    {
      "route_destination_id": 1100583660,
      "alias": "",
      "member_id": 1053088,
      "address": "Stop #4",
      "is_depot": false,
      "timeframe_violation_state": null,
      "timeframe_violation_time": 0,
      "timeframe_violation_rate": 0,
      "lat": 52.355059,
      "lng": 4.855051,
      "curbside_lat": 52.355059,
      "curbside_lng": 4.855051,
      "priority": null,
      "route_id": "5EB1EDFFE9855276BC12BC85D247B3B9",
      "original_route_id": null,
      "optimization_problem_id": "AA4062A4F594B5DB3837AC636279EE24",
      "sequence_no": 3,
      "geocoded": false,
      "preferred_geocoding": null,
      "failed_geocoding": false,
      "geocodings": [],
      "contact_id": null,
      "order_id": null,
      "order_uuid": null,
      "address_stop_type": "DELIVERY",
      "is_visited": false,
      "timestamp_last_visited": null,
      "visited_lat": null,
      "visited_lng": null,
      "is_departed": false,
      "departed_lat": null,
      "departed_lng": null,
      "timestamp_last_departed": null,
      "group": null,
      "customer_po": null,
      "invoice_no": null,
      "reference_no": null,
      "order_no": null,
      "weight": 0,
      "cost": 0,
      "revenue": 0,
      "cube": 0,
      "pieces": 1,
      "first_name": null,
      "last_name": null,
      "email": null,
      "phone": null,
      "destination_note_count": 0,
      "drive_time_to_next_destination": 907,
      "abnormal_traffic_time_to_next_destination": null,
      "uncongested_time_to_next_destination": null,
      "traffic_time_to_next_destination": null,
      "distance_to_next_destination": 10.45,
      "channel_name": "4f77bb1bf56741789f9fb5469a9bdf26",
      "pickup": null,
      "dropoff": null,
      "joint": null,
      "generated_time_window_start": null,
      "generated_time_window_end": null,
      "time_window_start": null,
      "time_window_end": null,
      "time_window_start_2": null,
      "time_window_end_2": null,
      "geofence_detected_visited_timestamp": null,
      "geofence_detected_departed_timestamp": null,
      "geofence_detected_service_time": null,
      "geofence_detected_visited_lat": null,
      "geofence_detected_visited_lng": null,
      "geofence_detected_departed_lat": null,
      "geofence_detected_departed_lng": null,
      "geofence_local_visited_timestamp": null,
      "geofence_local_visited_lat": null,
      "geofence_local_visited_lng": null,
      "geofence_local_departed_timestamp": null,
      "geofence_local_departed_lat": null,
      "geofence_local_departed_lng": null,
      "geofence_local_service_time": null,
      "time": 0,
      "tracking_number": "QD6PMNMQ",
      "custom_fields": {},
      "custom_fields_str_json": "{}",
      "custom_fields_config": null,
      "custom_fields_config_str_json": "null",
      "notes": [],
      "bundle_count": 0,
      "bundle_items": null,
      "order_inventory": null,
      "required_skills": [],
      "additional_status": null,
      "workflow_uuid": null,
      "invalid_sequence": {
        "detected": false,
        "event_timestamp": 0,
        "actual_sequence_no": null,
        "expected_sequence_no": null,
        "revision_count": null
      }
    },
    {
      "route_destination_id": 1100583661,
      "alias": "",
      "member_id": 1053088,
      "address": "Stop #5",
      "is_depot": false,
      "timeframe_violation_state": null,
      "timeframe_violation_time": 0,
      "timeframe_violation_rate": 0,
      "lat": 52.351536,
      "lng": 5.007007,
      "curbside_lat": 52.351536,
      "curbside_lng": 5.007007,
      "priority": null,
      "route_id": "5EB1EDFFE9855276BC12BC85D247B3B9",
      "original_route_id": null,
      "optimization_problem_id": "AA4062A4F594B5DB3837AC636279EE24",
      "sequence_no": 4,
      "geocoded": false,
      "preferred_geocoding": null,
      "failed_geocoding": false,
      "geocodings": [],
      "contact_id": null,
      "order_id": null,
      "order_uuid": null,
      "address_stop_type": "DELIVERY",
      "is_visited": false,
      "timestamp_last_visited": null,
      "visited_lat": null,
      "visited_lng": null,
      "is_departed": false,
      "departed_lat": null,
      "departed_lng": null,
      "timestamp_last_departed": null,
      "group": null,
      "customer_po": null,
      "invoice_no": null,
      "reference_no": null,
      "order_no": null,
      "weight": 0,
      "cost": 0,
      "revenue": 0,
      "cube": 0,
      "pieces": 1,
      "first_name": null,
      "last_name": null,
      "email": null,
      "phone": null,
      "destination_note_count": 0,
      "drive_time_to_next_destination": 206,
      "abnormal_traffic_time_to_next_destination": null,
      "uncongested_time_to_next_destination": null,
      "traffic_time_to_next_destination": null,
      "distance_to_next_destination": 1,
      "channel_name": "74b8d1e56cf0c2fc37be13750ab7feae",
      "pickup": null,
      "dropoff": null,
      "joint": null,
      "generated_time_window_start": null,
      "generated_time_window_end": null,
      "time_window_start": null,
      "time_window_end": null,
      "time_window_start_2": null,
      "time_window_end_2": null,
      "geofence_detected_visited_timestamp": null,
      "geofence_detected_departed_timestamp": null,
      "geofence_detected_service_time": null,
      "geofence_detected_visited_lat": null,
      "geofence_detected_visited_lng": null,
      "geofence_detected_departed_lat": null,
      "geofence_detected_departed_lng": null,
      "geofence_local_visited_timestamp": null,
      "geofence_local_visited_lat": null,
      "geofence_local_visited_lng": null,
      "geofence_local_departed_timestamp": null,
      "geofence_local_departed_lat": null,
      "geofence_local_departed_lng": null,
      "geofence_local_service_time": null,
      "time": 0,
      "tracking_number": "RMEP8L8Q",
      "custom_fields": {},
      "custom_fields_str_json": "{}",
      "custom_fields_config": null,
      "custom_fields_config_str_json": "null",
      "notes": [],
      "bundle_count": 0,
      "bundle_items": null,
      "order_inventory": null,
      "required_skills": [],
      "additional_status": null,
      "workflow_uuid": null,
      "invalid_sequence": {
        "detected": false,
        "event_timestamp": 0,
        "actual_sequence_no": null,
        "expected_sequence_no": null,
        "revision_count": null
      }
    },
    {
      "route_destination_id": 1100583662,
      "alias": "",
      "member_id": 1053088,
      "address": "Stop #6",
      "is_depot": false,
      "timeframe_violation_state": null,
      "timeframe_violation_time": 0,
      "timeframe_violation_rate": 0,
      "lat": 52.360651,
      "lng": 4.993203,
      "curbside_lat": 52.360651,
      "curbside_lng": 4.993203,
      "priority": null,
      "route_id": "5EB1EDFFE9855276BC12BC85D247B3B9",
      "original_route_id": null,
      "optimization_problem_id": "AA4062A4F594B5DB3837AC636279EE24",
      "sequence_no": 5,
      "geocoded": false,
      "preferred_geocoding": null,
      "failed_geocoding": false,
      "geocodings": [],
      "contact_id": null,
      "order_id": null,
      "order_uuid": null,
      "address_stop_type": "DELIVERY",
      "is_visited": false,
      "timestamp_last_visited": null,
      "visited_lat": null,
      "visited_lng": null,
      "is_departed": false,
      "departed_lat": null,
      "departed_lng": null,
      "timestamp_last_departed": null,
      "group": null,
      "customer_po": null,
      "invoice_no": null,
      "reference_no": null,
      "order_no": null,
      "weight": 0,
      "cost": 0,
      "revenue": 0,
      "cube": 0,
      "pieces": 1,
      "first_name": null,
      "last_name": null,
      "email": null,
      "phone": null,
      "destination_note_count": 0,
      "drive_time_to_next_destination": 758,
      "abnormal_traffic_time_to_next_destination": null,
      "uncongested_time_to_next_destination": null,
      "traffic_time_to_next_destination": null,
      "distance_to_next_destination": 5.62,
      "channel_name": "93b083ec482bb0819c9b03790daa6dcf",
      "pickup": null,
      "dropoff": null,
      "joint": null,
      "generated_time_window_start": null,
      "generated_time_window_end": null,
      "time_window_start": null,
      "time_window_end": null,
      "time_window_start_2": null,
      "time_window_end_2": null,
      "geofence_detected_visited_timestamp": null,
      "geofence_detected_departed_timestamp": null,
      "geofence_detected_service_time": null,
      "geofence_detected_visited_lat": null,
      "geofence_detected_visited_lng": null,
      "geofence_detected_departed_lat": null,
      "geofence_detected_departed_lng": null,
      "geofence_local_visited_timestamp": null,
      "geofence_local_visited_lat": null,
      "geofence_local_visited_lng": null,
      "geofence_local_departed_timestamp": null,
      "geofence_local_departed_lat": null,
      "geofence_local_departed_lng": null,
      "geofence_local_service_time": null,
      "time": 0,
      "tracking_number": "Y9NPEKEX",
      "custom_fields": {},
      "custom_fields_str_json": "{}",
      "custom_fields_config": null,
      "custom_fields_config_str_json": "null",
      "notes": [],
      "bundle_count": 0,
      "bundle_items": null,
      "order_inventory": null,
      "required_skills": [],
      "additional_status": null,
      "workflow_uuid": null,
      "invalid_sequence": {
        "detected": false,
        "event_timestamp": 0,
        "actual_sequence_no": null,
        "expected_sequence_no": null,
        "revision_count": null
      }
    },
    {
      "route_destination_id": 1100583663,
      "alias": "",
      "member_id": 1053088,
      "address": "Stop #7",
      "is_depot": false,
      "timeframe_violation_state": null,
      "timeframe_violation_time": 0,
      "timeframe_violation_rate": 0,
      "lat": 52.375203,
      "lng": 4.882226,
      "curbside_lat": 52.375203,
      "curbside_lng": 4.882226,
      "priority": null,
      "route_id": "5EB1EDFFE9855276BC12BC85D247B3B9",
      "original_route_id": null,
      "optimization_problem_id": "AA4062A4F594B5DB3837AC636279EE24",
      "sequence_no": 6,
      "geocoded": false,
      "preferred_geocoding": null,
      "failed_geocoding": false,
      "geocodings": [],
      "contact_id": null,
      "order_id": null,
      "order_uuid": null,
      "address_stop_type": "DELIVERY",
      "is_visited": false,
      "timestamp_last_visited": null,
      "visited_lat": null,
      "visited_lng": null,
      "is_departed": false,
      "departed_lat": null,
      "departed_lng": null,
      "timestamp_last_departed": null,
      "group": null,
      "customer_po": null,
      "invoice_no": null,
      "reference_no": null,
      "order_no": null,
      "weight": 0,
      "cost": 0,
      "revenue": 0,
      "cube": 0,
      "pieces": 1,
      "first_name": null,
      "last_name": null,
      "email": null,
      "phone": null,
      "destination_note_count": 0,
      "drive_time_to_next_destination": 408,
      "abnormal_traffic_time_to_next_destination": null,
      "uncongested_time_to_next_destination": null,
      "traffic_time_to_next_destination": null,
      "distance_to_next_destination": 1.91,
      "channel_name": "bc9347ab52014b7659711f7bc933d090",
      "pickup": null,
      "dropoff": null,
      "joint": null,
      "generated_time_window_start": null,
      "generated_time_window_end": null,
      "time_window_start": null,
      "time_window_end": null,
      "time_window_start_2": null,
      "time_window_end_2": null,
      "geofence_detected_visited_timestamp": null,
      "geofence_detected_departed_timestamp": null,
      "geofence_detected_service_time": null,
      "geofence_detected_visited_lat": null,
      "geofence_detected_visited_lng": null,
      "geofence_detected_departed_lat": null,
      "geofence_detected_departed_lng": null,
      "geofence_local_visited_timestamp": null,
      "geofence_local_visited_lat": null,
      "geofence_local_visited_lng": null,
      "geofence_local_departed_timestamp": null,
      "geofence_local_departed_lat": null,
      "geofence_local_departed_lng": null,
      "geofence_local_service_time": null,
      "time": 0,
      "tracking_number": "ZXDPN6N3",
      "custom_fields": {},
      "custom_fields_str_json": "{}",
      "custom_fields_config": null,
      "custom_fields_config_str_json": "null",
      "notes": [],
      "bundle_count": 0,
      "bundle_items": null,
      "order_inventory": null,
      "required_skills": [],
      "additional_status": null,
      "workflow_uuid": null,
      "invalid_sequence": {
        "detected": false,
        "event_timestamp": 0,
        "actual_sequence_no": null,
        "expected_sequence_no": null,
        "revision_count": null
      }
    },
    {
      "route_destination_id": 1100583664,
      "alias": "",
      "member_id": 1053088,
      "address": "Stop #8",
      "is_depot": false,
      "timeframe_violation_state": null,
      "timeframe_violation_time": 0,
      "timeframe_violation_rate": 0,
      "lat": 52.36068,
      "lng": 4.855828,
      "curbside_lat": 52.36068,
      "curbside_lng": 4.855828,
      "priority": null,
      "route_id": "5EB1EDFFE9855276BC12BC85D247B3B9",
      "original_route_id": null,
      "optimization_problem_id": "AA4062A4F594B5DB3837AC636279EE24",
      "sequence_no": 7,
      "geocoded": false,
      "preferred_geocoding": null,
      "failed_geocoding": false,
      "geocodings": [],
      "contact_id": null,
      "order_id": null,
      "order_uuid": null,
      "address_stop_type": "DELIVERY",
      "is_visited": false,
      "timestamp_last_visited": null,
      "visited_lat": null,
      "visited_lng": null,
      "is_departed": false,
      "departed_lat": null,
      "departed_lng": null,
      "timestamp_last_departed": null,
      "group": null,
      "customer_po": null,
      "invoice_no": null,
      "reference_no": null,
      "order_no": null,
      "weight": 0,
      "cost": 0,
      "revenue": 0,
      "cube": 0,
      "pieces": 1,
      "first_name": null,
      "last_name": null,
      "email": null,
      "phone": null,
      "destination_note_count": 0,
      "drive_time_to_next_destination": 837,
      "abnormal_traffic_time_to_next_destination": null,
      "uncongested_time_to_next_destination": null,
      "traffic_time_to_next_destination": null,
      "distance_to_next_destination": 4.83,
      "channel_name": "e87e4f6a5016cb669e5744d68a1083c5",
      "pickup": null,
      "dropoff": null,
      "joint": null,
      "generated_time_window_start": null,
      "generated_time_window_end": null,
      "time_window_start": null,
      "time_window_end": null,
      "time_window_start_2": null,
      "time_window_end_2": null,
      "geofence_detected_visited_timestamp": null,
      "geofence_detected_departed_timestamp": null,
      "geofence_detected_service_time": null,
      "geofence_detected_visited_lat": null,
      "geofence_detected_visited_lng": null,
      "geofence_detected_departed_lat": null,
      "geofence_detected_departed_lng": null,
      "geofence_local_visited_timestamp": null,
      "geofence_local_visited_lat": null,
      "geofence_local_visited_lng": null,
      "geofence_local_departed_timestamp": null,
      "geofence_local_departed_lat": null,
      "geofence_local_departed_lng": null,
      "geofence_local_service_time": null,
      "time": 0,
      "tracking_number": "PZKPDNDD",
      "custom_fields": {},
      "custom_fields_str_json": "{}",
      "custom_fields_config": null,
      "custom_fields_config_str_json": "null",
      "notes": [],
      "bundle_count": 0,
      "bundle_items": null,
      "order_inventory": null,
      "required_skills": [],
      "additional_status": null,
      "workflow_uuid": null,
      "invalid_sequence": {
        "detected": false,
        "event_timestamp": 0,
        "actual_sequence_no": null,
        "expected_sequence_no": null,
        "revision_count": null
      }
    },
    {
      "route_destination_id": 1100583665,
      "alias": "",
      "member_id": 1053088,
      "address": "Stop #9",
      "is_depot": false,
      "timeframe_violation_state": null,
      "timeframe_violation_time": 0,
      "timeframe_violation_rate": 0,
      "lat": 52.371708,
      "lng": 4.937041,
      "curbside_lat": 52.371708,
      "curbside_lng": 4.937041,
      "priority": null,
      "route_id": "5EB1EDFFE9855276BC12BC85D247B3B9",
      "original_route_id": null,
      "optimization_problem_id": "AA4062A4F594B5DB3837AC636279EE24",
      "sequence_no": 8,
      "geocoded": false,
      "preferred_geocoding": null,
      "failed_geocoding": false,
      "geocodings": [],
      "contact_id": null,
      "order_id": null,
      "order_uuid": null,
      "address_stop_type": "DELIVERY",
      "is_visited": false,
      "timestamp_last_visited": null,
      "visited_lat": null,
      "visited_lng": null,
      "is_departed": false,
      "departed_lat": null,
      "departed_lng": null,
      "timestamp_last_departed": null,
      "group": null,
      "customer_po": null,
      "invoice_no": null,
      "reference_no": null,
      "order_no": null,
      "weight": 0,
      "cost": 0,
      "revenue": 0,
      "cube": 0,
      "pieces": 1,
      "first_name": null,
      "last_name": null,
      "email": null,
      "phone": null,
      "destination_note_count": 0,
      "drive_time_to_next_destination": 0,
      "abnormal_traffic_time_to_next_destination": null,
      "uncongested_time_to_next_destination": null,
      "traffic_time_to_next_destination": null,
      "distance_to_next_destination": 0,
      "channel_name": "94d7db4d639080c44e6c756dcc23da10",
      "pickup": null,
      "dropoff": null,
      "joint": null,
      "generated_time_window_start": null,
      "generated_time_window_end": null,
      "time_window_start": null,
      "time_window_end": null,
      "time_window_start_2": null,
      "time_window_end_2": null,
      "geofence_detected_visited_timestamp": null,
      "geofence_detected_departed_timestamp": null,
      "geofence_detected_service_time": null,
      "geofence_detected_visited_lat": null,
      "geofence_detected_visited_lng": null,
      "geofence_detected_departed_lat": null,
      "geofence_detected_departed_lng": null,
      "geofence_local_visited_timestamp": null,
      "geofence_local_visited_lat": null,
      "geofence_local_visited_lng": null,
      "geofence_local_departed_timestamp": null,
      "geofence_local_departed_lat": null,
      "geofence_local_departed_lng": null,
      "geofence_local_service_time": null,
      "time": 0,
      "tracking_number": "LZM3QNQP",
      "custom_fields": {},
      "custom_fields_str_json": "{}",
      "custom_fields_config": null,
      "custom_fields_config_str_json": "null",
      "notes": [],
      "bundle_count": 0,
      "bundle_items": null,
      "order_inventory": null,
      "required_skills": [],
      "additional_status": null,
      "workflow_uuid": null,
      "invalid_sequence": {
        "detected": false,
        "event_timestamp": 0,
        "actual_sequence_no": null,
        "expected_sequence_no": null,
        "revision_count": null
      }
    },
    {
      "route_destination_id": 1100583666,
      "alias": "",
      "member_id": 1053088,
      "address": "Stop #10",
      "is_depot": false,
      "timeframe_violation_state": null,
      "timeframe_violation_time": 0,
      "timeframe_violation_rate": 0,
      "lat": 52.371708,
      "lng": 4.937041,
      "curbside_lat": 52.371708,
      "curbside_lng": 4.937041,
      "priority": null,
      "route_id": "5EB1EDFFE9855276BC12BC85D247B3B9",
      "original_route_id": null,
      "optimization_problem_id": "AA4062A4F594B5DB3837AC636279EE24",
      "sequence_no": 9,
      "geocoded": false,
      "preferred_geocoding": null,
      "failed_geocoding": false,
      "geocodings": [],
      "contact_id": null,
      "order_id": null,
      "order_uuid": null,
      "address_stop_type": "DELIVERY",
      "is_visited": false,
      "timestamp_last_visited": null,
      "visited_lat": null,
      "visited_lng": null,
      "is_departed": false,
      "departed_lat": null,
      "departed_lng": null,
      "timestamp_last_departed": null,
      "group": null,
      "customer_po": null,
      "invoice_no": null,
      "reference_no": null,
      "order_no": null,
      "weight": 0,
      "cost": 0,
      "revenue": 0,
      "cube": 0,
      "pieces": 1,
      "first_name": null,
      "last_name": null,
      "email": null,
      "phone": null,
      "destination_note_count": 0,
      "drive_time_to_next_destination": 386,
      "abnormal_traffic_time_to_next_destination": null,
      "uncongested_time_to_next_destination": null,
      "traffic_time_to_next_destination": null,
      "distance_to_next_destination": 3.03,
      "channel_name": "a1a2ccbe733544cf32db6032ecfc2c7c",
      "pickup": null,
      "dropoff": null,
      "joint": null,
      "generated_time_window_start": null,
      "generated_time_window_end": null,
      "time_window_start": null,
      "time_window_end": null,
      "time_window_start_2": null,
      "time_window_end_2": null,
      "geofence_detected_visited_timestamp": null,
      "geofence_detected_departed_timestamp": null,
      "geofence_detected_service_time": null,
      "geofence_detected_visited_lat": null,
      "geofence_detected_visited_lng": null,
      "geofence_detected_departed_lat": null,
      "geofence_detected_departed_lng": null,
      "geofence_local_visited_timestamp": null,
      "geofence_local_visited_lat": null,
      "geofence_local_visited_lng": null,
      "geofence_local_departed_timestamp": null,
      "geofence_local_departed_lat": null,
      "geofence_local_departed_lng": null,
      "geofence_local_service_time": null,
      "time": 0,
      "tracking_number": "DK9MELEY",
      "custom_fields": {},
      "custom_fields_str_json": "{}",
      "custom_fields_config": null,
      "custom_fields_config_str_json": "null",
      "notes": [],
      "bundle_count": 0,
      "bundle_items": null,
      "order_inventory": null,
      "required_skills": [],
      "additional_status": null,
      "workflow_uuid": null,
      "invalid_sequence": {
        "detected": false,
        "event_timestamp": 0,
        "actual_sequence_no": null,
        "expected_sequence_no": null,
        "revision_count": null
      }
    },
    {
      "route_destination_id": 1100583667,
      "alias": "",
      "member_id": 1053088,
      "address": "Stop #11",
      "is_depot": false,
      "timeframe_violation_state": null,
      "timeframe_violation_time": 0,
      "timeframe_violation_rate": 0,
      "lat": 52.357168,
      "lng": 4.946456,
      "curbside_lat": 52.357168,
      "curbside_lng": 4.946456,
      "priority": null,
      "route_id": "5EB1EDFFE9855276BC12BC85D247B3B9",
      "original_route_id": null,
      "optimization_problem_id": "AA4062A4F594B5DB3837AC636279EE24",
      "sequence_no": 10,
      "geocoded": false,
      "preferred_geocoding": null,
      "failed_geocoding": false,
      "geocodings": [],
      "contact_id": null,
      "order_id": null,
      "order_uuid": null,
      "address_stop_type": "DELIVERY",
      "is_visited": false,
      "timestamp_last_visited": null,
      "visited_lat": null,
      "visited_lng": null,
      "is_departed": false,
      "departed_lat": null,
      "departed_lng": null,
      "timestamp_last_departed": null,
      "group": null,
      "customer_po": null,
      "invoice_no": null,
      "reference_no": null,
      "order_no": null,
      "weight": 0,
      "cost": 0,
      "revenue": 0,
      "cube": 0,
      "pieces": 1,
      "first_name": null,
      "last_name": null,
      "email": null,
      "phone": null,
      "destination_note_count": 0,
      "drive_time_to_next_destination": 512,
      "abnormal_traffic_time_to_next_destination": null,
      "uncongested_time_to_next_destination": null,
      "traffic_time_to_next_destination": null,
      "distance_to_next_destination": 3.27,
      "channel_name": "4a395a6b09a40f64970c85a6dafc79b0",
      "pickup": null,
      "dropoff": null,
      "joint": null,
      "generated_time_window_start": null,
      "generated_time_window_end": null,
      "time_window_start": null,
      "time_window_end": null,
      "time_window_start_2": null,
      "time_window_end_2": null,
      "geofence_detected_visited_timestamp": null,
      "geofence_detected_departed_timestamp": null,
      "geofence_detected_service_time": null,
      "geofence_detected_visited_lat": null,
      "geofence_detected_visited_lng": null,
      "geofence_detected_departed_lat": null,
      "geofence_detected_departed_lng": null,
      "geofence_local_visited_timestamp": null,
      "geofence_local_visited_lat": null,
      "geofence_local_visited_lng": null,
      "geofence_local_departed_timestamp": null,
      "geofence_local_departed_lat": null,
      "geofence_local_departed_lng": null,
      "geofence_local_service_time": null,
      "time": 0,
      "tracking_number": "MZ8G0N0D",
      "custom_fields": {},
      "custom_fields_str_json": "{}",
      "custom_fields_config": null,
      "custom_fields_config_str_json": "null",
      "notes": [],
      "bundle_count": 0,
      "bundle_items": null,
      "order_inventory": null,
      "required_skills": [],
      "additional_status": null,
      "workflow_uuid": null,
      "invalid_sequence": {
        "detected": false,
        "event_timestamp": 0,
        "actual_sequence_no": null,
        "expected_sequence_no": null,
        "revision_count": null
      }
    },
    {
      "route_destination_id": 1100583668,
      "alias": "",
      "member_id": 1053088,
      "address": "Stop #12",
      "is_depot": false,
      "timeframe_violation_state": null,
      "timeframe_violation_time": 0,
      "timeframe_violation_rate": 0,
      "lat": 52.32816,
      "lng": 4.961257,
      "curbside_lat": 52.32816,
      "curbside_lng": 4.961257,
      "priority": null,
      "route_id": "5EB1EDFFE9855276BC12BC85D247B3B9",
      "original_route_id": null,
      "optimization_problem_id": "AA4062A4F594B5DB3837AC636279EE24",
      "sequence_no": 11,
      "geocoded": false,
      "preferred_geocoding": null,
      "failed_geocoding": false,
      "geocodings": [],
      "contact_id": null,
      "order_id": null,
      "order_uuid": null,
      "address_stop_type": "DELIVERY",
      "is_visited": false,
      "timestamp_last_visited": null,
      "visited_lat": null,
      "visited_lng": null,
      "is_departed": false,
      "departed_lat": null,
      "departed_lng": null,
      "timestamp_last_departed": null,
      "group": null,
      "customer_po": null,
      "invoice_no": null,
      "reference_no": null,
      "order_no": null,
      "weight": 0,
      "cost": 0,
      "revenue": 0,
      "cube": 0,
      "pieces": 1,
      "first_name": null,
      "last_name": null,
      "email": null,
      "phone": null,
      "destination_note_count": 0,
      "drive_time_to_next_destination": 812,
      "abnormal_traffic_time_to_next_destination": null,
      "uncongested_time_to_next_destination": null,
      "traffic_time_to_next_destination": null,
      "distance_to_next_destination": 9.73,
      "channel_name": "64669343be0d576aec64c9d013c15aa4",
      "pickup": null,
      "dropoff": null,
      "joint": null,
      "generated_time_window_start": null,
      "generated_time_window_end": null,
      "time_window_start": null,
      "time_window_end": null,
      "time_window_start_2": null,
      "time_window_end_2": null,
      "geofence_detected_visited_timestamp": null,
      "geofence_detected_departed_timestamp": null,
      "geofence_detected_service_time": null,
      "geofence_detected_visited_lat": null,
      "geofence_detected_visited_lng": null,
      "geofence_detected_departed_lat": null,
      "geofence_detected_departed_lng": null,
      "geofence_local_visited_timestamp": null,
      "geofence_local_visited_lat": null,
      "geofence_local_visited_lng": null,
      "geofence_local_departed_timestamp": null,
      "geofence_local_departed_lat": null,
      "geofence_local_departed_lng": null,
      "geofence_local_service_time": null,
      "time": 0,
      "tracking_number": "8G7Y9X9L",
      "custom_fields": {},
      "custom_fields_str_json": "{}",
      "custom_fields_config": null,
      "custom_fields_config_str_json": "null",
      "notes": [],
      "bundle_count": 0,
      "bundle_items": null,
      "order_inventory": null,
      "required_skills": [],
      "additional_status": null,
      "workflow_uuid": null,
      "invalid_sequence": {
        "detected": false,
        "event_timestamp": 0,
        "actual_sequence_no": null,
        "expected_sequence_no": null,
        "revision_count": null
      }
    },
    {
      "route_destination_id": 1100583669,
      "alias": "",
      "member_id": 1053088,
      "address": "Stop #13",
      "is_depot": false,
      "timeframe_violation_state": null,
      "timeframe_violation_time": 0,
      "timeframe_violation_rate": 0,
      "lat": 52.38003,
      "lng": 4.857972,
      "curbside_lat": 52.38003,
      "curbside_lng": 4.857972,
      "priority": null,
      "route_id": "5EB1EDFFE9855276BC12BC85D247B3B9",
      "original_route_id": null,
      "optimization_problem_id": "AA4062A4F594B5DB3837AC636279EE24",
      "sequence_no": 12,
      "geocoded": false,
      "preferred_geocoding": null,
      "failed_geocoding": false,
      "geocodings": [],
      "contact_id": null,
      "order_id": null,
      "order_uuid": null,
      "address_stop_type": "DELIVERY",
      "is_visited": false,
      "timestamp_last_visited": null,
      "visited_lat": null,
      "visited_lng": null,
      "is_departed": false,
      "departed_lat": null,
      "departed_lng": null,
      "timestamp_last_departed": null,
      "group": null,
      "customer_po": null,
      "invoice_no": null,
      "reference_no": null,
      "order_no": null,
      "weight": 0,
      "cost": 0,
      "revenue": 0,
      "cube": 0,
      "pieces": 1,
      "first_name": null,
      "last_name": null,
      "email": null,
      "phone": null,
      "destination_note_count": 0,
      "drive_time_to_next_destination": 785,
      "abnormal_traffic_time_to_next_destination": null,
      "uncongested_time_to_next_destination": null,
      "traffic_time_to_next_destination": null,
      "distance_to_next_destination": 9.4,
      "channel_name": "ed201e31afc0ea257a8f41f87ad54c73",
      "pickup": null,
      "dropoff": null,
      "joint": null,
      "generated_time_window_start": null,
      "generated_time_window_end": null,
      "time_window_start": null,
      "time_window_end": null,
      "time_window_start_2": null,
      "time_window_end_2": null,
      "geofence_detected_visited_timestamp": null,
      "geofence_detected_departed_timestamp": null,
      "geofence_detected_service_time": null,
      "geofence_detected_visited_lat": null,
      "geofence_detected_visited_lng": null,
      "geofence_detected_departed_lat": null,
      "geofence_detected_departed_lng": null,
      "geofence_local_visited_timestamp": null,
      "geofence_local_visited_lat": null,
      "geofence_local_visited_lng": null,
      "geofence_local_departed_timestamp": null,
      "geofence_local_departed_lat": null,
      "geofence_local_departed_lng": null,
      "geofence_local_service_time": null,
      "time": 0,
      "tracking_number": "102LPRP0",
      "custom_fields": {},
      "custom_fields_str_json": "{}",
      "custom_fields_config": null,
      "custom_fields_config_str_json": "null",
      "notes": [],
      "bundle_count": 0,
      "bundle_items": null,
      "order_inventory": null,
      "required_skills": [],
      "additional_status": null,
      "workflow_uuid": null,
      "invalid_sequence": {
        "detected": false,
        "event_timestamp": 0,
        "actual_sequence_no": null,
        "expected_sequence_no": null,
        "revision_count": null
      }
    },
    {
      "route_destination_id": 1100583670,
      "alias": "",
      "member_id": 1053088,
      "address": "Stop #14",
      "is_depot": false,
      "timeframe_violation_state": null,
      "timeframe_violation_time": 0,
      "timeframe_violation_rate": 0,
      "lat": 52.328816,
      "lng": 4.95593,
      "curbside_lat": 52.328816,
      "curbside_lng": 4.95593,
      "priority": null,
      "route_id": "5EB1EDFFE9855276BC12BC85D247B3B9",
      "original_route_id": null,
      "optimization_problem_id": "AA4062A4F594B5DB3837AC636279EE24",
      "sequence_no": 13,
      "geocoded": false,
      "preferred_geocoding": null,
      "failed_geocoding": false,
      "geocodings": [],
      "contact_id": null,
      "order_id": null,
      "order_uuid": null,
      "address_stop_type": "DELIVERY",
      "is_visited": false,
      "timestamp_last_visited": null,
      "visited_lat": null,
      "visited_lng": null,
      "is_departed": false,
      "departed_lat": null,
      "departed_lng": null,
      "timestamp_last_departed": null,
      "group": null,
      "customer_po": null,
      "invoice_no": null,
      "reference_no": null,
      "order_no": null,
      "weight": 0,
      "cost": 0,
      "revenue": 0,
      "cube": 0,
      "pieces": 1,
      "first_name": null,
      "last_name": null,
      "email": null,
      "phone": null,
      "destination_note_count": 0,
      "drive_time_to_next_destination": 20,
      "abnormal_traffic_time_to_next_destination": null,
      "uncongested_time_to_next_destination": null,
      "traffic_time_to_next_destination": null,
      "distance_to_next_destination": 0.07,
      "channel_name": "9ee4e820fb2a70260cf5cc40c35a995d",
      "pickup": null,
      "dropoff": null,
      "joint": null,
      "generated_time_window_start": null,
      "generated_time_window_end": null,
      "time_window_start": null,
      "time_window_end": null,
      "time_window_start_2": null,
      "time_window_end_2": null,
      "geofence_detected_visited_timestamp": null,
      "geofence_detected_departed_timestamp": null,
      "geofence_detected_service_time": null,
      "geofence_detected_visited_lat": null,
      "geofence_detected_visited_lng": null,
      "geofence_detected_departed_lat": null,
      "geofence_detected_departed_lng": null,
      "geofence_local_visited_timestamp": null,
      "geofence_local_visited_lat": null,
      "geofence_local_visited_lng": null,
      "geofence_local_departed_timestamp": null,
      "geofence_local_departed_lat": null,
      "geofence_local_departed_lng": null,
      "geofence_local_service_time": null,
      "time": 0,
      "tracking_number": "2RKN3X36",
      "custom_fields": {},
      "custom_fields_str_json": "{}",
      "custom_fields_config": null,
      "custom_fields_config_str_json": "null",
      "notes": [],
      "bundle_count": 0,
      "bundle_items": null,
      "order_inventory": null,
      "required_skills": [],
      "additional_status": null,
      "workflow_uuid": null,
      "invalid_sequence": {
        "detected": false,
        "event_timestamp": 0,
        "actual_sequence_no": null,
        "expected_sequence_no": null,
        "revision_count": null
      }
    },
    {
      "route_destination_id": 1100583671,
      "alias": "",
      "member_id": 1053088,
      "address": "Stop #15",
      "is_depot": false,
      "timeframe_violation_state": null,
      "timeframe_violation_time": 0,
      "timeframe_violation_rate": 0,
      "lat": 52.329394,
      "lng": 4.955335,
      "curbside_lat": 52.329394,
      "curbside_lng": 4.955335,
      "priority": null,
      "route_id": "5EB1EDFFE9855276BC12BC85D247B3B9",
      "original_route_id": null,
      "optimization_problem_id": "AA4062A4F594B5DB3837AC636279EE24",
      "sequence_no": 14,
      "geocoded": false,
      "preferred_geocoding": null,
      "failed_geocoding": false,
      "geocodings": [],
      "contact_id": null,
      "order_id": null,
      "order_uuid": null,
      "address_stop_type": "DELIVERY",
      "is_visited": false,
      "timestamp_last_visited": null,
      "visited_lat": null,
      "visited_lng": null,
      "is_departed": false,
      "departed_lat": null,
      "departed_lng": null,
      "timestamp_last_departed": null,
      "group": null,
      "customer_po": null,
      "invoice_no": null,
      "reference_no": null,
      "order_no": null,
      "weight": 0,
      "cost": 0,
      "revenue": 0,
      "cube": 0,
      "pieces": 1,
      "first_name": null,
      "last_name": null,
      "email": null,
      "phone": null,
      "destination_note_count": 0,
      "drive_time_to_next_destination": 0,
      "abnormal_traffic_time_to_next_destination": null,
      "uncongested_time_to_next_destination": null,
      "traffic_time_to_next_destination": null,
      "distance_to_next_destination": 0,
      "channel_name": "1d4cb7d26b13fab6e4bd5ecee6729407",
      "pickup": null,
      "dropoff": null,
      "joint": null,
      "generated_time_window_start": null,
      "generated_time_window_end": null,
      "time_window_start": null,
      "time_window_end": null,
      "time_window_start_2": null,
      "time_window_end_2": null,
      "geofence_detected_visited_timestamp": null,
      "geofence_detected_departed_timestamp": null,
      "geofence_detected_service_time": null,
      "geofence_detected_visited_lat": null,
      "geofence_detected_visited_lng": null,
      "geofence_detected_departed_lat": null,
      "geofence_detected_departed_lng": null,
      "geofence_local_visited_timestamp": null,
      "geofence_local_visited_lat": null,
      "geofence_local_visited_lng": null,
      "geofence_local_departed_timestamp": null,
      "geofence_local_departed_lat": null,
      "geofence_local_departed_lng": null,
      "geofence_local_service_time": null,
      "time": 0,
      "tracking_number": "KZD93N3X",
      "custom_fields": {},
      "custom_fields_str_json": "{}",
      "custom_fields_config": null,
      "custom_fields_config_str_json": "null",
      "notes": [],
      "bundle_count": 0,
      "bundle_items": null,
      "order_inventory": null,
      "required_skills": [],
      "additional_status": null,
      "workflow_uuid": null,
      "invalid_sequence": {
        "detected": false,
        "event_timestamp": 0,
        "actual_sequence_no": null,
        "expected_sequence_no": null,
        "revision_count": null
      }
    }
  ],
  "total_addresses": 15,
  "routes": [
    {
      "route_id": "5EB1EDFFE9855276BC12BC85D247B3B9",
      "optimization_problem_id": "AA4062A4F594B5DB3837AC636279EE24",
      "user_route_rating": null,
      "member_id": 1053088,
      "member_email": "[email protected]",
      "member_first_name": "Igor",
      "member_last_name": "Skrynkovskyy",
      "member_picture": "https://apps-static.route4me.com/uploads/3a27efa1473d75648f8e1516bda165d6/profile_b92a9bc45d6dadf3c4054c11ddcab67a.png",
      "member_tracking_subheadline": null,
      "approved_for_execution": false,
      "approved_revisions_counter": 0,
      "dispatched_timestamp": null,
      "channel_name": "8a8afd3b203d760695e6b6a7f36089e4",
      "vehicle_alias": null,
      "driver_alias": "",
      "trip_distance": 67.56,
      "udu_distance_unit": "km",
      "udu_trip_distance": 108.73,
      "is_unrouted": false,
      "route_cost": 0,
      "route_weight": 0,
      "route_cube": 0,
      "route_revenue": 0,
      "route_pieces": 14,
      "route_demand_stats": {
        "weight": {
          "running": 0,
          "initial": 0,
          "remaining": 0,
          "delivered": 0,
          "picked": 0
        },
        "cube": {
          "running": 0,
          "initial": 0,
          "remaining": 0,
          "delivered": 0,
          "picked": 0
        },
        "pieces": {
          "running": 14,
          "initial": 14,
          "remaining": 0,
          "delivered": 14,
          "picked": 0
        },
        "revenue": {
          "running": 0,
          "initial": 0,
          "remaining": 0,
          "delivered": 0,
          "picked": 0
        }
      },
      "net_revenue_per_distance_unit": 0,
      "created_timestamp": 1709726802,
      "mpg": 10,
      "gas_price": 2,
      "route_duration_sec": 7233,
      "planned_total_route_duration": 7233,
      "total_wait_time": 0,
      "udu_actual_travel_distance": 0,
      "actual_travel_distance": 0,
      "actual_travel_time": 0,
      "actual_start_timestamp": null,
      "driver_open_timestamp": null,
      "actual_footsteps": 0,
      "working_time": 0,
      "driving_time": 0,
      "idling_time": 0,
      "paying_miles": 0,
      "geofence_polygon_type": "rect",
      "geofence_polygon_size": 50,
      "destination_count": 14,
      "unique_destination_count": 14,
      "notes_count": 0,
      "addresses_deviation_count": 0,
      "parameters": {
        "is_upload": false,
        "rt": false,
        "route_name": "Wed, 06 Mar 2024 12:06:38 +0000 UTC",
        "route_date": 1709683200,
        "route_time": 25200,
        "shared_publicly": false,
        "disable_optimization": false,
        "optimize": "Time",
        "lock_last": false,
        "vehicle_capacity": null,
        "vehicle_max_cargo_weight": null,
        "vehicle_max_cargo_volume": null,
        "vehicle_max_distance_mi": null,
        "subtour_max_revenue": null,
        "distance_unit": "mi",
        "travel_mode": "Driving",
        "avoid": "",
        "avoidance_zones": [],
        "vehicle_id": null,
        "driver_id": null,
        "dev_lat": null,
        "dev_lng": null,
        "route_max_duration": 1800,
        "route_email": null,
        "store_route": true,
        "metric": 4,
        "algorithm_type": 100,
        "member_id": 1053088,
        "ip": 1602858388,
        "dm": 12,
        "dirm": 10,
        "parts": 10,
        "parts_min": 1,
        "device_id": "",
        "device_type": "web",
        "first_drive_then_wait_between_stops": false,
        "has_trailer": false,
        "trailer_weight_t": null,
        "limited_weight_t": null,
        "weight_per_axle_t": null,
        "truck_height": null,
        "truck_width": null,
        "truck_length": null,
        "truck_hazardous_goods": "",
        "truck_axles": 0,
        "truck_toll_road_usage": null,
        "truck_avoid_ferries": null,
        "truck_hwy_only": null,
        "truck_lcv": null,
        "truck_borders": null,
        "truck_side_street_adherence": null,
        "truck_config": null,
        "truck_dim_unit": null,
        "truck_type": null,
        "truck_weight": 0,
        "optimization_quality": 1,
        "override_addresses": {},
        "max_tour_size": null,
        "min_tour_size": 0,
        "uturn": 1,
        "leftturn": 1,
        "rightturn": 1,
        "route_time_multiplier": null,
        "route_service_time_multiplier": null,
        "optimization_engine": "2",
        "is_dynamic_start_time": false,
        "is_amp": true
      },
      "addresses": [
        {
          "route_destination_id": 1100583657,
          "alias": "",
          "member_id": 1053088,
          "address": "Stop #1",
          "is_depot": true,
          "timeframe_violation_state": null,
          "timeframe_violation_time": 0,
          "timeframe_violation_rate": 0,
          "lat": 52.373066,
          "lng": 4.856445,
          "curbside_lat": 52.373066,
          "curbside_lng": 4.856445,
          "priority": null,
          "route_id": null,
          "original_route_id": null,
          "route_name": null,
          "optimization_problem_id": "AA4062A4F594B5DB3837AC636279EE24",
          "sequence_no": 0,
          "geocoded": false,
          "preferred_geocoding": null,
          "failed_geocoding": false,
          "geocodings": [],
          "contact_id": null,
          "order_id": null,
          "order_uuid": null,
          "address_stop_type": null,
          "is_visited": false,
          "timestamp_last_visited": null,
          "visited_lat": null,
          "visited_lng": null,
          "is_departed": false,
          "departed_lat": null,
          "departed_lng": null,
          "timestamp_last_departed": null,
          "group": null,
          "customer_po": null,
          "invoice_no": null,
          "reference_no": null,
          "order_no": null,
          "weight": 0,
          "cost": 0,
          "revenue": 0,
          "cube": 0,
          "pieces": 0,
          "first_name": null,
          "last_name": null,
          "email": null,
          "phone": null,
          "destination_note_count": 0,
          "drive_time_to_next_destination": 882,
          "abnormal_traffic_time_to_next_destination": null,
          "uncongested_time_to_next_destination": null,
          "traffic_time_to_next_destination": null,
          "distance_to_next_destination": 9.92,
          "channel_name": "17672b7bdf0d7bbbc54286160f4ba321",
          "pickup": null,
          "dropoff": null,
          "joint": null,
          "generated_time_window_start": null,
          "generated_time_window_end": null,
          "time_window_start": null,
          "time_window_end": null,
          "time_window_start_2": null,
          "time_window_end_2": null,
          "geofence_detected_visited_timestamp": null,
          "geofence_detected_departed_timestamp": null,
          "geofence_detected_service_time": null,
          "geofence_detected_visited_lat": null,
          "geofence_detected_visited_lng": null,
          "geofence_detected_departed_lat": null,
          "geofence_detected_departed_lng": null,
          "geofence_local_visited_timestamp": null,
          "geofence_local_visited_lat": null,
          "geofence_local_visited_lng": null,
          "geofence_local_departed_timestamp": null,
          "geofence_local_departed_lat": null,
          "geofence_local_departed_lng": null,
          "geofence_local_service_time": null,
          "time": 0,
          "tracking_number": null,
          "custom_fields": {},
          "custom_fields_str_json": "{}",
          "custom_fields_config": null,
          "custom_fields_config_str_json": "null",
          "notes": [],
          "bundle_count": 0,
          "bundle_items": null,
          "order_inventory": null,
          "required_skills": [],
          "additional_status": null,
          "workflow_uuid": null,
          "invalid_sequence": {
            "detected": false,
            "event_timestamp": 0,
            "actual_sequence_no": null,
            "expected_sequence_no": null,
            "revision_count": null
          },
          "udu_distance_to_next_destination": 15.96,
          "wait_time_to_next_destination": 0,
          "manifest": {
            "time_windows_violated": false,
            "projected_wait_time_before_tw_open": 0,
            "estimated_wait_time_before_tw_open": 0,
            "running_service_time": 0,
            "running_travel_time": 0,
            "running_wait_time": 0,
            "running_distance": 0,
            "fuel_from_start": 0,
            "fuel_cost_from_start": 0,
            "projected_arrival_time_ts": 1709708400,
            "projected_departure_time_ts": 1709708400,
            "estimated_arrival_time_ts": 1709708400,
            "estimated_departure_time_ts": 1709708400,
            "actual_arrival_time_ts": null,
            "actual_departure_time_ts": null,
            "scheduled_arrival_time_ts": 1709708400,
            "scheduled_departure_time_ts": 1709708400,
            "time_impact": null,
            "arrival_on_time": true,
            "arrival_deviation_seconds": 0,
            "departure_on_time": true,
            "departure_deviation_seconds": 0,
            "remaining_weight": 0,
            "remaining_cube": 0,
            "remaining_pieces": 14,
            "remaining_revenue": 0,
            "udu_running_distance": 0
          }
        },
...
        {
          "route_destination_id": 1100583671,
          "alias": "",
          "member_id": 1053088,
          "address": "Stop #15",
          "is_depot": false,
          "timeframe_violation_state": null,
          "timeframe_violation_time": 0,
          "timeframe_violation_rate": 0,
          "lat": 52.329394,
          "lng": 4.955335,
          "curbside_lat": 52.329394,
          "curbside_lng": 4.955335,
          "priority": null,
          "route_id": "5EB1EDFFE9855276BC12BC85D247B3B9",
          "original_route_id": null,
          "optimization_problem_id": "AA4062A4F594B5DB3837AC636279EE24",
          "sequence_no": 14,
          "geocoded": false,
          "preferred_geocoding": null,
          "failed_geocoding": false,
          "geocodings": [],
          "contact_id": null,
          "order_id": null,
          "order_uuid": null,
          "address_stop_type": "DELIVERY",
          "is_visited": false,
          "timestamp_last_visited": null,
          "visited_lat": null,
          "visited_lng": null,
          "is_departed": false,
          "departed_lat": null,
          "departed_lng": null,
          "timestamp_last_departed": null,
          "group": null,
          "customer_po": null,
          "invoice_no": null,
          "reference_no": null,
          "order_no": null,
          "weight": 0,
          "cost": 0,
          "revenue": 0,
          "cube": 0,
          "pieces": 1,
          "first_name": null,
          "last_name": null,
          "email": null,
          "phone": null,
          "destination_note_count": 0,
          "drive_time_to_next_destination": null,
          "abnormal_traffic_time_to_next_destination": null,
          "uncongested_time_to_next_destination": null,
          "traffic_time_to_next_destination": null,
          "distance_to_next_destination": null,
          "channel_name": "1d4cb7d26b13fab6e4bd5ecee6729407",
          "pickup": null,
          "dropoff": null,
          "joint": null,
          "generated_time_window_start": null,
          "generated_time_window_end": null,
          "time_window_start": null,
          "time_window_end": null,
          "time_window_start_2": null,
          "time_window_end_2": null,
          "geofence_detected_visited_timestamp": null,
          "geofence_detected_departed_timestamp": null,
          "geofence_detected_service_time": null,
          "geofence_detected_visited_lat": null,
          "geofence_detected_visited_lng": null,
          "geofence_detected_departed_lat": null,
          "geofence_detected_departed_lng": null,
          "geofence_local_visited_timestamp": null,
          "geofence_local_visited_lat": null,
          "geofence_local_visited_lng": null,
          "geofence_local_departed_timestamp": null,
          "geofence_local_departed_lat": null,
          "geofence_local_departed_lng": null,
          "geofence_local_service_time": null,
          "time": 0,
          "tracking_number": "KZD93N3X",
          "custom_fields": {},
          "custom_fields_str_json": "{}",
          "custom_fields_config": null,
          "custom_fields_config_str_json": "null",
          "notes": [],
          "bundle_count": 0,
          "bundle_items": null,
          "order_inventory": null,
          "required_skills": [],
          "additional_status": null,
          "workflow_uuid": null,
          "invalid_sequence": {
            "detected": false,
            "event_timestamp": 0,
            "actual_sequence_no": null,
            "expected_sequence_no": null,
            "revision_count": null
          },
          "udu_distance_to_next_destination": null,
          "wait_time_to_next_destination": null,
          "manifest": {
            "time_windows_violated": false,
            "projected_wait_time_before_tw_open": 0,
            "estimated_wait_time_before_tw_open": 0,
            "running_service_time": 0,
            "running_travel_time": 7233,
            "running_wait_time": 0,
            "running_distance": 67.56,
            "fuel_from_start": 6.756,
            "fuel_cost_from_start": 13.512,
            "projected_arrival_time_ts": 1709715633,
            "projected_departure_time_ts": 1709715633,
            "estimated_arrival_time_ts": 1709715633,
            "estimated_departure_time_ts": 1709715633,
            "actual_arrival_time_ts": null,
            "actual_departure_time_ts": null,
            "scheduled_arrival_time_ts": 1709715633,
            "scheduled_departure_time_ts": 1709715633,
            "time_impact": null,
            "arrival_on_time": true,
            "arrival_deviation_seconds": 0,
            "departure_on_time": true,
            "departure_deviation_seconds": 0,
            "remaining_weight": 0,
            "remaining_cube": 0,
            "remaining_pieces": 0,
            "remaining_revenue": 0,
            "udu_running_distance": 108.73
          }
        }
      ],
      "links": {
        "route": "https://api.route4me.com/api.v4/route.php?route_id=5EB1EDFFE9855276BC12BC85D247B3B9&api_key=66BEB076E50C4C0690046EA29A9D3921&member_id=1053088&device_tracking_history=0&original=0&notes=0",
        "optimization_problem_id": "https://api.route4me.com/api.v4/optimization_problem.php?optimization_problem_id=AA4062A4F594B5DB3837AC636279EE24&api_key=66BEB076E50C4C0690046EA29A9D3921&member_id=1053088"
      },
      "notes": [],
      "vehicle": null,
      "has_tracking": false,
      "path": [],
      "directions": [],
      "member_config_storage": {
        "test": "google.com1",
        "order_special_feed_field": "EXT_FIELD_custom_data.Assigned_Inspector",
        "hide_sharing_in_route_parameters_dialog": "true",
        "disable_telematics_popup_overlay": "1",
        "h2_site": "google.com",
        "HERE_COM_LAST_OPEN_TS": "1623838472",
        "HIDE_CUSTOM_NOTE_TYPE_DROPDOWN": "false"
      },
      "bundle_items": null
    }
  ],
  "links": {
    "view": "https://api.route4me.com/api.v4/optimization_problem.php?optimization_problem_id=AA4062A4F594B5DB3837AC636279EE24&api_key=66BEB076E50C4C0690046EA29A9D3921&member_id=1053088"
  }
}

This marks the creation of your first optimization.

Request a route

After Route4Me has solved the Optimization Problem, the Destinations will be distributed among Routes according to the Optimization Parameters and Advanced Constraints specified in the Create Optimization request.

The successful Create Optimization response will contain the route_id for each route created as a part of this Optimization.

To Get your first Route, extract a route_id and place it into the Get Route request. Don't forget to set the directions Query parameter to 1 to get the driving directions:

curl --request GET \
     --url https://wh.route4me.com/modules/api/v5.0/routes/route_id \
     --header 'accept: application/json'
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://wh.route4me.com/modules/api/v5.0/routes/route_id")
  .get()
  .addHeader("accept", "application/json")
  .build();

Response response = client.newCall(request).execute();
using RestSharp;


var options = new RestClientOptions("https://wh.route4me.com/modules/api/v5.0/routes/route_id");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("accept", "application/json");
var response = await client.GetAsync(request);

Console.WriteLine("{0}", response.Content);
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://wh.route4me.com/modules/api/v5.0/routes/route_id', [
  'headers' => [
    'accept' => 'application/json',
  ],
]);

echo $response->getBody();
import requests

url = "https://wh.route4me.com/modules/api/v5.0/routes/route_id"

headers = {"accept": "application/json"}

response = requests.get(url, headers=headers)

print(response.text)
import r4M from '@api/r4m';

r4M.server('https://wh.route4me.com/modules');
r4M.e5c2133636a0ebc10718deafbb051932({route_id: 'route_id'})
  .then(({ data }) => console.log(data))
  .catch(err => console.error(err));
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://wh.route4me.com/modules/api/v5.0/routes/route_id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("accept", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}

The response to this request will look something like this:

{
  "route_id": "string",
  "route_name": "string",
  "route_created_unix": 0,
  "optimization_problem_id": "string",
  "updated_timestamp": 0,
  "route_scheduled_start_unix": 0,
  "approved_to_execute": true,
  "approved_to_execute_timestamp": 0,
  "destination_count": 0,
  "visited_count": 0,
  "notes_count": 0,
  "vehicle_id": "string",
  "vehicle_alias": "string",
  "driver_alias": "string",
  "member_id": 0,
  "owner_email": "string",
  "trip_distance": 0,
  "actual_travel_distance": 0,
  "actual_travel_time": 0,
  "planned_total_route_duration": 0,
  "route_progress": 0,
  "weight": 0,
  "cube": 0,
  "revenue": 0,
  "pieces": 0,
  "route_data": [
    {}
  ],
  "addresses_deviation_count": 0,
  "actual_avg_service_time": 0,
  "projected_avg_service_time": 0,
  "route_status": "string",
  "route_status_id": 0,
  "destinations_arrived_on_time": 0,
  "destinations_arrived_early": 0,
  "destinations_arrived_late": 0,
  "driver_open_timestamp": 0,
  "planned_end_timestamp": 0,
  "planned_route_duration": 0,
  "actual_start_timestamp": 0,
  "actual_end_timestamp": 0,
  "actual_route_duration": 0,
  "cost": 0,
  "planned_weight_load_percent": 0,
  "planned_cube_load_percent": 0,
  "planned_revenue_load_percent": 0,
  "planned_pieces_load_percent": 0,
  "actual_weight_load_percent": 0,
  "actual_cube_load_percent": 0,
  "actual_revenue_load_percent": 0,
  "actual_pieces_load_percent": 0,
  "mobile_actual_travel_distance": "string",
  "telematics_actual_travel_distance": "string",
  "merged_actual_travel_distance": 0,
  "mobile_actual_travel_timestamp": 0,
  "telematics_actual_travel_timestamp": 0,
  "merged_actual_travel_timestamp": 0,
  "planned_destinations": 0,
  "failed_destinations": 0,
  "skipped_destinations": 0,
  "done_destinations": 0,
  "telematics_visited_distance_percent": 0,
  "telematics_no_visited_distance_percent": 0,
  "telematics_out_of_path_distance_percent": 0,
  "mobile_visited_distance_percent": 0,
  "mobile_no_visited_distance_percent": 0,
  "mobile_out_of_path_distance_percent": 0,
  "merged_visited_distance_percent": 0,
  "merged_no_visited_distance_percent": 0,
  "merged_out_of_path_distance_percent": 0,
  "has_directions": true,
  "actual_weight": 0,
  "actual_cube": 0,
  "actual_revenue": 0,
  "actual_pieces": 0,
  "route_custom_data": [
    {}
  ],
  "planned_total_service_time": 0,
  "planned_total_travel_time": 0,
  "planned_total_wait_time": 0,
  "planned_total_break_time": 0,
  "manual_registered_actual_total_service_time": 0,
  "geofence_actual_total_service_time": 0,
  "facility_ids": [
    "string"
  ],
  "is_unrouted": true,
  "path": "string",
  "facilities": [
    {}
  ],
  "depot_timezone": "string",
  "member": {
    "member_type": "string",
    "member_type_title": "string",
    "first_name": "string",
    "last_name": "string"
  },
  "manual_registered_actual_total_break_time": 0,
  "geofence_actual_total_break_time": 0,
  "actual_total_wait_time": 0
}

Done! You now have the first route Route4Me optimized for you, complete with the driving instructions!