You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| props | <code>object</code> || Optimization properties. Here are some required or useful properties, for full list of properties look at docs. |
68
+
| props.parameters | <code>object</code> || Route Parameters. Here are some required and useful parameters, for full list of properties look at docs. |
| props.parameters.device_type | <code>string</code> || The type of the device that is creating this route. Possible values: "web", "iphone", "ipad", "android_phone", "android_tablet". |
71
+
| props.parameters.distance_unit | <code>string</code> || The distance measurement unit for the route. Possible values: "mi", "km". |
72
+
| props.parameters.route_max_duration | <code>number</code> || = 86400 - How many seconds a route can last at most. Default is 24 hours = 86400 seconds. |
73
+
| props.parameters.route_time | <code>number</code> || = 25200 - Time when the route starts (relative to route_date) (Seconds). UTC timezone as well. Default is 07:00 UTC = 25200 seconds. |
74
+
| props.parameters.travel_mode | <code>number</code> || The mode of travel that the directions should be optimized for. Possible values: "Driving", "Walking", "Bicycling". |
75
+
|[props.parameters.optimize]| <code>string</code> || The driving directions will be generated biased for this selection. This has no impact on route sequencing. Possible values: "Distance", "Time", "timeWithTraffic". |
76
+
|[props.parameters.parts]| <code>number</code> || Legacy feature which permits a user to request an example number of optimized routes. |
77
+
|[props.parameters.route_date]| <code>number</code> || The route start date in UTC, unix timestamp seconds. Used to show users when the route will begin, also used for reporting and analytics. |
78
+
|[props.parameters.route_name]| <code>string</code> || The name of this route. this route name will be accessible in the search API, and also will be displayed on the mobile device of a user. |
79
+
|[props.parameters.rt]| <code>boolean</code> || The tour type of this route. rt is short for round trip, the optimization engine changes its behavior for round trip routes. |
80
+
|[props.parameters.vehicle_capacity]| <code>number</code> || How much cargo can the vehicle carry (units, e.g. cubic meters) |
81
+
|[props.parameters.vehicle_max_distance_mi]| <code>number</code> || Maximum distance for a single vehicle in this route (always in miles). |
|[props.parameters.advanced_constraints.max_cargo_weight]| <code>number</code> || Maximum cargo weight per route. |
84
+
|[props.parameters.advanced_constraints.max_cargo_volume]| <code>number</code> || Maximum cargo volume per route. |
85
+
|[props.parameters.advanced_constraints.max_capacity]| <code>number</code> || How much total cargo can be transported per route (units, e.g. cubic meters). |
86
+
|[props.parameters.advanced_constraints.members_count]| <code>number</code> || Legacy feature which permits a user to request an example number of optimized routes. |
87
+
| props.parameters.advanced_constraints.available_time_windows | <code>Array.<array></code> || An array of the available time windows, e.g. [[43200, 72000], [TimeStart, TimeEnd]] Time Window Start in seconds: 7:00 am EST = (7 + 5) * 3600 = 43200 Time Window End in seconds: 15:00 am EST = (15 + 5) * 3600 = 72000 |
88
+
|[props.parameters.advanced_constraints.tags]| <code>Array.<string></code> || The driver tags specified in a team member's custom data. (e.g. 'driver skills': ["Class A CDL", "Class B CDL", "Forklift", "Skid Steer Loader", "Independent Contractor"]) |
89
+
|[props.parameters.advanced_constraints.route4me_members_id]| <code>Array.<number></code> || An array of the skilled driver IDs. |
90
+
|[props.parameters.advanced_constraints.depot_address]| <code>object</code> || A depot address. |
| props.parameters.advanced_constraints.depot_address.source_type | <code>string</code> || Source type (e.g. input_addresses). |
93
+
|[props.parameters.advanced_constraints.location_sequence_pattern]| <code>Array.<object></code> || The parameter is used in advanced constraints to set the stops you plan to visit each route. Note: empty string "" means any stops, for example ["", AddresssObject1, AddresssObject2, "", AddresssObject3] means any stops before AddresssObject1 and between AddresssObject2 and AddresssObject3. |
94
+
|[props.parameters.advanced_constraints.location_sequence_pattern.alias]| <code>string</code> || Location alias |
|[props.parameters.advanced_constraints.location_sequence_pattern.time]| <code>number</code> || Location service time |
99
+
|[props.parameters.advanced_constraints.group]| <code>string</code> || Group name of the advanced constraints. |
100
+
|[props.depots]| <code>Array.<object></code> || A valid array of Address objects of Depots. |
101
+
| props.addresses | <code>Array.<object></code> || A valid array of Address objects. Here are some required and useful properties of the Address object, for full list of properties look at docs. |
|[props.addresses.time]| <code>number</code> || Service time (seconds). |
109
+
|[props.addresses.time_window_start]| <code>number</code> || Time Window Start in seconds, relative to the route start date (midnight), UTC time zone. It is relative to start date because start time changes would shift time windows. |
110
+
|[props.addresses.time_window_end]| <code>number</code> || Time Window End in seconds, relative to the route start date (midnight), UTC time zone. It is relative to start date because start time changes would shift time windows. |
111
+
|[props.addresses.tags]| <code>Array.<string></code> || Array of address tags. |
112
+
|[props.addresses.contact_id]| <code>number</code> || Address book contact id (0 means not connected to the address book). |
113
+
|[props.optimized_callback_url]| <code>string</code> || A URL that gets called when the optimization is solved, or if there is an error. The callback is called with a POST request. The POST data sent is: timestamp (Seconds) - Server timestamp of request sent; optimization_problem_id (Hash String) - ID of the optimization; state (Small Int) - The state can be one of the values: 4 = OPTIMIZATION_STATE_OPTIMIZED, which means the optimization was successful; 5 = OPTIMIZATION_STATE_ERROR, which means there was an error solving the optimization. Query string (GET fields). |
114
+
|[isRedirect]| <code>boolean</code> || If set, it will be redirected. Use false for no redirection or not send. |
115
+
| callback | <code>RequestCallback</code> || The callback that handles the response. |
0 commit comments