src/Route4Me/ActivityParameters.php 1 location
|
@@ 71-82 (lines=12) @@
|
| 68 |
|
return $activity; |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
public static function sendUserMessage($params) |
| 72 |
|
{ |
| 73 |
|
$allBodyFields = array('activity_type', 'activity_message', 'route_id'); |
| 74 |
|
|
| 75 |
|
$result = Route4Me::makeRequst(array( |
| 76 |
|
'url' => Endpoint::ACTIVITY_FEED, |
| 77 |
|
'method' => 'POST', |
| 78 |
|
'body' => Route4Me::generateRequestParameters($allBodyFields, $params) |
| 79 |
|
)); |
| 80 |
|
|
| 81 |
|
return $result; |
| 82 |
|
} |
| 83 |
|
} |
| 84 |
|
|
src/Route4Me/AddressBookLocation.php 1 location
|
@@ 66-78 (lines=13) @@
|
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
|
| 66 |
|
public static function getAddressBookLocation($addressId) |
| 67 |
|
{ |
| 68 |
|
$ablocations = Route4Me::makeRequst(array( |
| 69 |
|
'url' => Endpoint::ADDRESS_BOOK_V4, |
| 70 |
|
'method' => 'GET', |
| 71 |
|
'query' => array( |
| 72 |
|
'query' => $addressId, |
| 73 |
|
'limit' => 30 |
| 74 |
|
) |
| 75 |
|
)); |
| 76 |
|
|
| 77 |
|
return $ablocations; |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
public static function searchAddressBookLocations($params) |
| 81 |
|
{ |
src/Route4Me/Geocoding.php 1 location
|
@@ 45-56 (lines=12) @@
|
| 42 |
|
return $fgCoding; |
| 43 |
|
} |
| 44 |
|
|
| 45 |
|
public static function reverseGeocoding($params) |
| 46 |
|
{ |
| 47 |
|
$allQueryFields = array('format', 'addresses', 'detailed'); |
| 48 |
|
|
| 49 |
|
$fgcoding = Route4Me::makeRequst(array( |
| 50 |
|
'url' => Endpoint::GEOCODER, |
| 51 |
|
'method' => 'POST', |
| 52 |
|
'query' => Route4Me::generateRequestParameters($allQueryFields, $params) |
| 53 |
|
)); |
| 54 |
|
|
| 55 |
|
return $fgcoding; |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
public static function getStreetData($params) |
| 59 |
|
{ |
src/Route4Me/Member.php 1 location
|
@@ 222-233 (lines=12) @@
|
| 219 |
|
return $response; |
| 220 |
|
} |
| 221 |
|
|
| 222 |
|
public static function validateSession($params) |
| 223 |
|
{ |
| 224 |
|
$allQueryFields = array('session_guid', 'member_id', 'format'); |
| 225 |
|
|
| 226 |
|
$response = Route4Me::makeRequst(array( |
| 227 |
|
'url' => Endpoint::VALIDATE_SESSION, |
| 228 |
|
'method' => 'GET', |
| 229 |
|
'query' => Route4Me::generateRequestParameters($allQueryFields, $params) |
| 230 |
|
)); |
| 231 |
|
|
| 232 |
|
return $response; |
| 233 |
|
} |
| 234 |
|
|
| 235 |
|
public static function memberAuthentication($params) |
| 236 |
|
{ |
src/Route4Me/OptimizationProblem.php 2 locations
|
@@ 191-202 (lines=12) @@
|
| 188 |
|
return $rAddress; |
| 189 |
|
} |
| 190 |
|
|
| 191 |
|
public function removeAddress($params) |
| 192 |
|
{ |
| 193 |
|
$allQueryFields = array('optimization_problem_id', 'route_destination_id'); |
| 194 |
|
|
| 195 |
|
$response = Route4Me::makeRequst(array( |
| 196 |
|
'url' => Endpoint::ADDRESS_V4, |
| 197 |
|
'method' => 'DELETE', |
| 198 |
|
'query' => Route4Me::generateRequestParameters($allQueryFields, $params) |
| 199 |
|
)); |
| 200 |
|
|
| 201 |
|
return $response; |
| 202 |
|
} |
| 203 |
|
|
| 204 |
|
public function removeOptimization($params) |
| 205 |
|
{ |
|
@@ 219-230 (lines=12) @@
|
| 216 |
|
return $response; |
| 217 |
|
} |
| 218 |
|
|
| 219 |
|
public function getHybridOptimization($params) |
| 220 |
|
{ |
| 221 |
|
$allQueryFields = array('target_date_string', 'timezone_offset_minutes'); |
| 222 |
|
|
| 223 |
|
$optimize = Route4Me::makeRequst(array( |
| 224 |
|
'url' => Endpoint::HYBRID_DATE_OPTIMIZATION, |
| 225 |
|
'method' => 'GET', |
| 226 |
|
'query' => Route4Me::generateRequestParameters($allQueryFields, $params) |
| 227 |
|
)); |
| 228 |
|
|
| 229 |
|
return $optimize; |
| 230 |
|
} |
| 231 |
|
|
| 232 |
|
Public function addDepotsToHybrid($params) |
| 233 |
|
{ |
src/Route4Me/Order.php 1 location
|
@@ 138-149 (lines=12) @@
|
| 135 |
|
return $response; |
| 136 |
|
} |
| 137 |
|
|
| 138 |
|
public static function getOrders($params) |
| 139 |
|
{ |
| 140 |
|
$allQueryFields = array('offset', 'limit'); |
| 141 |
|
|
| 142 |
|
$response = Route4Me::makeRequst(array( |
| 143 |
|
'url' => Endpoint::ORDER_V4, |
| 144 |
|
'method' => 'GET', |
| 145 |
|
'query' => Route4Me::generateRequestParameters($allQueryFields, $params) |
| 146 |
|
)); |
| 147 |
|
|
| 148 |
|
return $response; |
| 149 |
|
} |
| 150 |
|
|
| 151 |
|
public function getRandomOrderId($offset, $limit) |
| 152 |
|
{ |
src/Route4Me/Route.php 3 locations
|
@@ 131-143 (lines=13) @@
|
| 128 |
|
return $result; |
| 129 |
|
} |
| 130 |
|
|
| 131 |
|
public function duplicateRoute($route_id) |
| 132 |
|
{ |
| 133 |
|
$result = Route4Me::makeRequst(array( |
| 134 |
|
'url' => Endpoint::ROUTE_DUPLICATE, |
| 135 |
|
'method' => 'GET', |
| 136 |
|
'query' => array( |
| 137 |
|
'route_id' => $route_id, |
| 138 |
|
'to' => 'none', |
| 139 |
|
) |
| 140 |
|
)); |
| 141 |
|
|
| 142 |
|
return $result; |
| 143 |
|
} |
| 144 |
|
|
| 145 |
|
public function resequenceRoute($params) |
| 146 |
|
{ |
|
@@ 160-171 (lines=12) @@
|
| 157 |
|
return $result; |
| 158 |
|
} |
| 159 |
|
|
| 160 |
|
public function resequenceAllAddresses($params) |
| 161 |
|
{ |
| 162 |
|
$allQueryFields = array('route_id', 'disable_optimization', 'optimize'); |
| 163 |
|
|
| 164 |
|
$result = Route4Me::makeRequst(array( |
| 165 |
|
'url' => Endpoint::REOPTIMIZE_V3_2, |
| 166 |
|
'method' => 'GET', |
| 167 |
|
'query' => Route4Me::generateRequestParameters($allQueryFields, $params) |
| 168 |
|
)); |
| 169 |
|
|
| 170 |
|
return $result; |
| 171 |
|
} |
| 172 |
|
|
| 173 |
|
public function mergeRoutes($params) |
| 174 |
|
{ |
|
@@ 331-342 (lines=12) @@
|
| 328 |
|
return $result; |
| 329 |
|
} |
| 330 |
|
|
| 331 |
|
public function deleteRoutes($route_id) |
| 332 |
|
{ |
| 333 |
|
$result = Route4Me::makeRequst(array( |
| 334 |
|
'url' => Endpoint::ROUTES_DELETE, |
| 335 |
|
'method' => 'DELETE', |
| 336 |
|
'query' => array( |
| 337 |
|
'route_id' => $route_id, |
| 338 |
|
) |
| 339 |
|
)); |
| 340 |
|
|
| 341 |
|
return $result; |
| 342 |
|
} |
| 343 |
|
|
| 344 |
|
public function GetAddressesFromRoute($route_id) |
| 345 |
|
{ |
src/Route4Me/Territory.php 1 location
|
@@ 41-52 (lines=12) @@
|
| 38 |
|
return $territoryparameters; |
| 39 |
|
} |
| 40 |
|
|
| 41 |
|
public static function getTerritory($params) |
| 42 |
|
{ |
| 43 |
|
$allQueryFields = array('territory_id', 'addresses'); |
| 44 |
|
|
| 45 |
|
$territory = Route4Me::makeRequst(array( |
| 46 |
|
'url' => Endpoint::TERRITORY_V4, |
| 47 |
|
'method' => 'GET', |
| 48 |
|
'query' => Route4Me::generateRequestParameters($allQueryFields, $params) |
| 49 |
|
)); |
| 50 |
|
|
| 51 |
|
return $territory; |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
public static function getTerritories($params) |
| 55 |
|
{ |
src/Route4Me/Vehicle.php 1 location
|
@@ 78-89 (lines=12) @@
|
| 75 |
|
return $vehicle; |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
public static function getVehicles($params) |
| 79 |
|
{ |
| 80 |
|
$allQueryFields = array('with_pagination', 'page', 'perPage'); |
| 81 |
|
|
| 82 |
|
$response = Route4Me::makeRequst(array( |
| 83 |
|
'url' => Endpoint::VEHICLE_V4, |
| 84 |
|
'method' => 'GET', |
| 85 |
|
'query' => Route4Me::generateRequestParameters($allQueryFields, $params) |
| 86 |
|
)); |
| 87 |
|
|
| 88 |
|
return $response; |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
public function getRandomVehicleId($page,$perPage) |
| 92 |
|
{ |