|
Maps SDK for C++ 1.0.0
|


Public Member Functions | |
| Service (const Service &)=delete | |
| Service (Service &&)=default | |
| Default move constructor noexcept is deduced. | |
| Service & | operator= (const Service &)=delete |
| Default copy assignment operator. | |
| Service & | operator= (Service &&)=default |
| Default move assignment operator. | |
| int | getRequests (ProgressListener listener, RequestList &requests) noexcept |
| Async returns all un-finished requests. | |
| int | getRequest (ProgressListener listener, Request &request, LargeInteger requestId) noexcept |
| Async returns the request with the requestId. | |
| int | cancelRequest (ProgressListener listener, LargeInteger requestId) noexcept |
| Async cancels a request. | |
| int | addCustomer (ProgressListener listener, Customer &customer) noexcept |
| Async saves a customer. | |
| int | getCustomers (ProgressListener listener, CustomerList &customers, const String &searchTerm=String()) noexcept |
| Async returns all customers. | |
| int | getCustomer (ProgressListener listener, Customer &customer, LargeInteger customerId) noexcept |
| Async returns customer with the customerId. | |
| int | updateCustomer (ProgressListener listener, const Customer &customer) noexcept |
| Async saves the updates made to a customer. | |
| int | deleteCustomer (ProgressListener listener, const LargeIntList &customersIds) noexcept |
| Async removes customers. | |
| int | deleteCustomer (ProgressListener listener, Customer &customer) noexcept |
| Async removes a customer. | |
| int | getCustomerOrdersHistory (ProgressListener listener, CustomerOrderList &history, const Customer &customer) noexcept |
| Async returns each order made by the customer and the ids of the optimizations and routes where it was assigned. | |
| int | addMiscLocation (ProgressListener listener, MiscLocation &miscLocation) noexcept |
| Async saves a miscLocation. | |
| int | getMiscLocations (ProgressListener listener, MiscLocationList &miscLocations, const String &searchTerm=String()) noexcept |
| Async returns all miscLocations. | |
| int | getMiscLocation (ProgressListener listener, MiscLocation &miscLocation, LargeInteger miscLocationId) noexcept |
| Async returns miscLocation with the miscLocationId. | |
| int | updateMiscLocation (ProgressListener listener, const MiscLocation &miscLocation) noexcept |
| Async saves the updates made to a miscLocation. | |
| int | deleteMiscLocation (ProgressListener listener, const LargeIntList &miscLocationsIds) noexcept |
| Async removes miscLocations. | |
| int | deleteMiscLocation (ProgressListener listener, MiscLocation &miscLocation) noexcept |
| Async removes a miscLocation. | |
| int | addOrder (ProgressListener listener, Order &order, bool autoAssignDepot) noexcept |
| Async saves an order. | |
| int | getOrders (ProgressListener listener, OrderList &orders, const String &searchTerm=String()) noexcept |
| Async returns all the orders. | |
| int | getOrder (ProgressListener listener, Order &order, LargeInteger orderId) noexcept |
| Async returns order with the orderId. | |
| int | updateOrder (ProgressListener listener, Order &order, bool autoAssignDepot) noexcept |
| Async saves the updates made to an order. | |
| int | deleteOrder (ProgressListener listener, const LargeIntList &ordersIds) noexcept |
| Async removes orders. | |
| int | deleteOrder (ProgressListener listener, Order &order) noexcept |
| Async removes an order. | |
| int | addVehicle (ProgressListener listener, Vehicle &vehicle) noexcept |
| Async adds a vehicle in the list of vehicles of the API user. | |
| int | getVehicles (ProgressListener listener, VehicleList &list, const String &searchTerm=String()) noexcept |
| Async returns all the vehicles of the API user. | |
| int | getVehicle (ProgressListener listener, Vehicle &vehicle, LargeInteger vehicleId) noexcept |
| Async returns a vehicle. | |
| int | updateVehicle (ProgressListener listener, const Vehicle &vehicle) noexcept |
| Async saves the updates made to a vehicle. | |
| int | deleteVehicle (ProgressListener listener, const LargeIntList &vehiclesIds) noexcept |
| Async removes vehicles. | |
| int | deleteVehicle (ProgressListener listener, Vehicle &vehicle) noexcept |
| Async removes a vehicle. | |
| int | addTerritory (ProgressListener listener, Territory &territory) noexcept |
| Async adds a territory in the list of territories of the API user. | |
| int | getTerritories (ProgressListener listener, TerritoryList &list, const String &searchTerm=String()) noexcept |
| Async returns all the territories of the API user. | |
| int | getTerritory (ProgressListener listener, Territory &territory, LargeInteger territoryId) noexcept |
| Async returns a territory. | |
| int | updateTerritory (ProgressListener listener, Territory &territory) noexcept |
| Async saves the updates made to a territory. | |
| int | deleteTerritory (ProgressListener listener, const LargeIntList &territoriesIds) noexcept |
| Async removes territories. | |
| int | deleteTerritory (ProgressListener listener, Territory &territory) noexcept |
| Async removes a territory. | |
| int | generateTerritories (ProgressListener listener, TerritoryList &territories, const CoordinatesList &coordinates, int numberOfTerritories, bool autoNumberOfTerritory=false) noexcept |
| Asynchronously generates polygon territories by clustering a set of geographical coordinates. | |
| int | getTerritoriesOrders (ProgressListener listener, LargeInteger territoryId, IOrderList &list) noexcept |
| Async returns all orders that are inside the territory with the ID sent from the user. | |
| int | addOptimization (ProgressListener listener, Optimization &optimization, Request &request) noexcept |
| Async creates a request for solving the given optimization. | |
| int | getOptimizations (ProgressListener listener, OptimizationList &list, const String &searchTerm=String()) noexcept |
| Async returns all the optimizations of the API user. | |
| int | getOptimization (ProgressListener listener, Optimization &optimization, LargeInteger optimizationId) noexcept |
| Async returns the optimization with the given optimizationId. | |
| int | updateOptimization (ProgressListener listener, Optimization &optimization, Request &request) noexcept |
| Async saves the updates made to an optimization. | |
| int | deleteOptimization (ProgressListener listener, const LargeIntList &optimizationsIds) noexcept |
| Async removes optimizations. | |
| int | deleteOptimization (ProgressListener listener, Optimization &optimization) noexcept |
| Async removes an optimization. | |
| int | updateRoute (ProgressListener listener, Route &route, Request &request) noexcept |
| Async saves the updates made to a route. | |
| int | getRoutes (ProgressListener listener, RouteList &list, const String &searchTerm=String()) noexcept |
| Async gets all the routes of the API user. | |
| int | getRoute (ProgressListener listener, Route &route, LargeInteger routeId) noexcept |
| Async returns the route with the given routeId. | |
| int | deleteRoute (ProgressListener listener, const LargeIntList &routesIds) noexcept |
| Async delete the routes from the list. | |
| int | deleteRoute (ProgressListener listener, Route &route) noexcept |
| Async delete the route with the routeId. | |
| int | mergeRoutes (ProgressListener listener, Route &route, const LargeIntList &routeIds) noexcept |
| Async merges a list of routes into one route. | |
| int | moveOrderIntoAnotherRoute (ProgressListener listener, const Order &orderToMove, Route &fromRoute, Route &toRoute) noexcept |
| Async moves one orders from one route to another. | |
| int | addFuelPrices (ProgressListener listener, FuelPrices &prices) noexcept |
| Async sets the price for each fuel type. | |
| int | getFuelPrices (ProgressListener listener, FuelPricesList &list, const String &searchTerm=String()) noexcept |
| Async returns the price for each fuel type and the time when it was added. | |
| int | arrangeLandmarks (ProgressListener listener, IntList &result, const LandmarkList &lmks, ERouteTransportMode mode) noexcept |
| Async rearrange landmarks in an optimal way according to distance. | |
| int | optimize (gem::ProgressListener listener, const std::string &input, Request &request) noexcept |
| Async optimizes an input optimization JSON string. | |
| int | optimizeSync (gem::ProgressListener listener, const std::string &input, std::shared_ptr< std::string > output) noexcept |
| Sync optimizes an input optimization JSON string. | |
| int | getSolutionJson (ProgressListener listener, LargeInteger solutionId, std::shared_ptr< std::string > output) noexcept |
| Retrieves the JSON representation of a solution and writes it to the provided output string. | |
| int | clean (ProgressListener listener) noexcept |
| Async deletes all the date saved for an user. | |
| void | cancel (ProgressListener listener) noexcept |
| Cancel an async operation. | |
| TransferStatisticsRef | getTransferStatistics () const noexcept |
| Get data transfer statistics for this service. | |
VRP Service.
Manages the optimizations, routes, customers, vehicles and territories.
Implements share-read / write Api object over IService.
This behaves like a singleton, i.e. all instances are sharing behind the same API interface
|
inlinenoexcept |
Async saves a customer.
Each API user has an "agenda" with all the customers.
| [in,out] | customer | The Customer object. If the operation is successful, the customer will have an id assigned; which can be retrieved using the method Customer::getId(). |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async sets the price for each fuel type.
| [in] | prices | The FuelPrices object. One price for each fuel type. The time will be automatically updated if the operation was done successfully |
| [in] | listener | Operation progress listener . Returns:
|
|
inlinenoexcept |
Async saves a miscLocation.
Each API user has an "agenda" with all the miscLocations.
| [in,out] | miscLocation | The MiscLocation object. If the operation is successful, the miscLocation will have an id assigned; which can be retrieved using the method MiscLocation::getId(). |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async creates a request for solving the given optimization.
| [in] | listener | Operation progress listener. Returns:
|
| [out] | request | The request created for this operation. Use the request' id to get the current status of the operation. |
| [in,out] | optimization | The Optimization object. If the operation is successful, the optimization will have an id assigned; which can be retrieved using the method Optimization::getId(). |
|
inlinenoexcept |
Async saves an order.
This order can be later used in an optimization or in multiple optimizations.
| [in,out] | order | The Order object. If the operation is successful, the order will have an id assigned; which can be retrieved using the method Order::getId(). |
| [in] | listener | Operation progress listener. Returns:
|
| [in] | autoAssignDepot | If to the order should be assigned the nearest depot (by time), or not. |
|
inlinenoexcept |
Async adds a territory in the list of territories of the API user.
| [in,out] | territory | The Territory object. If the operation is successful, the territory will have an id assigned; which can be retrieved using the method Territory::getId(). |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async adds a vehicle in the list of vehicles of the API user.
The list of vehicles represents the fleet of the user.
| [in,out] | vehicle | The Vehicle object. If the operation is successful, the vehicle will have an id assigned; which can be retrieved using the method Vehicle::getId(). |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async rearrange landmarks in an optimal way according to distance.
| [out] | result | A list of rearranged landmark indexes. |
| [in] | lmks | The list of points on the maps that needs to be rearranged. |
| [in] | mode | The route transport mode. |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Cancel an async operation.
| [in] | listener | The listener associated with the operation |
|
inlinenoexcept |
Async cancels a request.
| [in] | requestId | Unique identifier for the request to be canceled |
| [in] | listener | Operation progress listener. Returns: KNoError = Success, error::KInternalAbort = The result parsing failed or server internal error occurred or error::KNotFound = Request not found or finished |
|
inlinenoexcept |
Async deletes all the date saved for an user.
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async removes customers.
If the customers have made some orders, they will also be deleted.
| [in] | customersIds | Unique identifier for the customer to be removed |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async removes a customer.
If this customer has made some orders, they will also be deleted.
| [in] | customer | The customer to be removed |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async removes miscLocations.
If the miscLocations have made some orders, they will also be deleted.
| [in] | miscLocationsIds | Unique identifier for the miscLocations to be removed |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async removes a miscLocation.
If this miscLocation has made some orders, they will also be deleted.
| [in] | miscLocation | The miscLocation to be removed |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async removes optimizations.
It also deletes theirs routes.
| [in] | optimizationsIds | The optimizations ids |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async removes an optimization.
It also deletes its routes.
| [in] | optimization | The optimization |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async removes orders.
If the orders have made some orders, they will also be deleted.
| [in] | ordersIds | Unique identifier for the orders to be removed |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async removes an order.
If this order has made some orders, they will also be deleted.
| [in] | order | The order to be removed |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async delete the routes from the list.
The route's orders will also be deleted from its optimization.
| [in] | routesIds | The routes ids |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async delete the route with the routeId.
The route's orders will also be deleted from its optimization.
| [in] | route | The route |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async removes territories.
| [in] | territoriesIds | The territories ids |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async removes a territory.
| [in] | territory | The territory |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async removes vehicles.
| [in] | vehiclesIds | The vehicles ids |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async removes a vehicle.
| [in] | vehicle | The vehicle to be deleted |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Asynchronously generates polygon territories by clustering a set of geographical coordinates.
Partitions the provided coordinates into numberOfTerritories polygon territories (type ETerritoryType::TT_Polygon). Each generated Territory exposes the orders located within it via Territory::getOrders(). At least 3 * numberOfTerritories coordinates must be provided. Set autoNumberOfTerritory to true to let the algorithm choose the count automatically, in which case numberOfTerritories is ignored.
| [in] | listener | Progress listener. On completion, the error code is one of:
|
| [out] | territories | Receives the generated Territory objects. |
| [in] | coordinates | Input coordinates. Must contain at least 3 * numberOfTerritories entries. |
| [in] | numberOfTerritories | Desired number of territories. Ignored when autoNumberOfTerritory is true. |
| [in] | autoNumberOfTerritory | When true, the algorithm determines the count automatically. Defaults to false. |
listener.
|
inlinenoexcept |
Async returns customer with the customerId.
| [out] | customer | The result Customer object |
| [in] | customerId | Unique identifier for the customer |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async returns each order made by the customer and the ids of the optimizations and routes where it was assigned.
| [out] | history | The orders history of the customer |
| [in] | customer | The Customer object |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async returns all customers.
| [out] | customers | Customer objects list |
| [in] | listener | Operation progress listener. Returns:
|
| [in] | searchTerm | the parameter for general search across customers. |
|
inlinenoexcept |
Async returns the price for each fuel type and the time when it was added.
| [out] | list | FuelPrices objects list |
| [in] | listener | Operation progress listener. Returns:
|
| [in] | searchTerm | the parameter for general search across routes. |
|
inlinenoexcept |
Async returns miscLocation with the miscLocationId.
| [out] | miscLocation | The result MiscLocation object |
| [in] | miscLocationId | Unique identifier for the miscLocation |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async returns all miscLocations.
| [out] | miscLocations | MiscLocation objects list |
| [in] | listener | Operation progress listener. Returns:
|
| [in] | searchTerm | the parameter for general search across miscLocations. |
|
inlinenoexcept |
Async returns the optimization with the given optimizationId.
| [out] | optimization | The result Optimization object |
| [in] | optimizationId | The optimization id |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async returns all the optimizations of the API user.
| [out] | list | Optimization objects list |
| [in] | listener | Operation progress listener. Returns:
|
| [in] | searchTerm | the parameter for general search across optimizations. |
|
inlinenoexcept |
Async returns order with the orderId.
| [out] | order | The result Order object |
| [in] | orderId | Unique identifier for the order |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async returns all the orders.
| [out] | orders | Order objects list |
| [in] | listener | Operation progress listener. Returns:
|
| [in] | searchTerm | the parameter for general search across orders. |
|
inlinenoexcept |
Async returns the request with the requestId.
| [out] | request | The result Request object |
| [in] | requestId | Unique identifier for the request |
| [in] | listener | Operation progress listener. Returns: KNoError = Success, error::KInternalAbort = The result parsing failed or server internal error occurred or error::KNotFound = Request not found |
|
inlinenoexcept |
Async returns all un-finished requests.
| [out] | requests | Request objects list |
| [in] | listener | Operation progress listener. Returns: KNoError = Success, error::KInternalAbort = The result parsing failed or server internal error occurred or error::KNotFound = No requests found |
|
inlinenoexcept |
Async returns the route with the given routeId.
| [out] | route | The result Route object |
| [in] | routeId | The route id |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async gets all the routes of the API user.
| [out] | list | Route objects list |
| [in] | listener | Operation progress listener. Returns:
|
| [in] | searchTerm | the parameter for general search across routes. |
|
inlinenoexcept |
Retrieves the JSON representation of a solution and writes it to the provided output string.
| [out] | output | The string where the solution JSON will be written. |
| [in] | solutionId | The unique identifier of the solution to retrieve. |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async returns all the territories of the API user.
| [out] | list | Territory objects list |
| [in] | listener | Operation progress listener. Returns:
|
| [in] | searchTerm | the parameter for general search across territories. |
|
inlinenoexcept |
Async returns all orders that are inside the territory with the ID sent from the user.
| [out] | list | orders objects list |
| [in] | territoryId | The territory id |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async returns a territory.
| [out] | territory | The result Territory object |
| [in] | territoryId | The territory id |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Get data transfer statistics for this service.
|
inlinenoexcept |
Async returns a vehicle.
| [out] | vehicle | The result Vehicle object |
| [in] | vehicleId | The vehicle id |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async returns all the vehicles of the API user.
| [out] | list | Vehicle objects list |
| [in] | listener | Operation progress listener. Returns:
|
| [in] | searchTerm | the parameter for general search across vehicles. |
|
inlinenoexcept |
Async merges a list of routes into one route.
A new optimization will be created for the merged route. The optimization will have the same fields as the first route in the routeIds list (exception: the field ignoreTimewindow will be true). Routes must not have matrices build type set to EMatrixBuildType::MBT_Set!
| [out] | route | The result Route object |
| [in] | routeIds | The route ids to be merged |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async moves one orders from one route to another.
If the routes are not in the same optimization, the order will also be moved from the fromRoute's optimization into the toRoute's optimization. The order will be added in toRoute at the optimal position. This method cannot be used if one of the routes or their optimizations have matrixBuildType = Set. The order must not be the depot of fromRoute or of its optimization.
| [in] | orderToMove | The order that will be moved |
| [in,out] | fromRoute | The Route from which the order is moved |
| [in,out] | toRoute | The Route to which the order is moved |
| [in] | listener | Operation progress listener. Returns:
|
|
delete |
Default copy assignment operator.
Replaces the contents of this object with a copy of another Service object.
|
default |
Default move assignment operator.
Moves the contents of another Service object into this one.
|
inlinenoexcept |
Async optimizes an input optimization JSON string.
| [out] | request | The request created for this operation. Use the request'id to get the current status of the operation. |
| [in] | input | The optimization input as JSON string. |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Sync optimizes an input optimization JSON string.
| [out] | output | The string where the solution JSON will be written. |
| [in] | input | The optimization input as JSON string. |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async saves the updates made to a customer.
| [in] | customer | The new Customer object |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async saves the updates made to a miscLocation.
| [in] | miscLocation | The new MiscLocation object |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async saves the updates made to an optimization.
The optimization will be reoptimized
The optimization's orders cannot be updated using this method (for orders update use the methods: Optimization::addOrders(), Optimization::updateOrder(), Optimization::deleteOrder()).
| [in] | listener | Operation progress listener. Returns:
|
| [in] | optimization | The updated Optimization object |
| [out] | request | The request created for this operation. Use the request'id to get the current status of the operation. |
|
inlinenoexcept |
Async saves the updates made to an order.
If this order is scheduled in an optimization, the location and address cannot be changed.
| [in] | order | The new Order object |
| [in] | listener | Operation progress listener. Returns:
|
| [in] | autoAssignDepot | If to the order should be assigned the nearest depot (by time), or not. |
|
inlinenoexcept |
Async saves the updates made to a route.
The updates will not be applied on the route's optimization as well.
The orders of the route cannot be updated using this method (for orders update use the methods: Route::addOrders(), Route::deleteOrder(), Optimization::updateOrder()).
| [in] | listener | Operation progress listener. Returns:
|
| [in,out] | route | The updated Route object |
| [out] | request | The request created for this operation. Use the request'id to get the current status of the operation. |
|
inlinenoexcept |
Async saves the updates made to a territory.
| [in,out] | territory | The Territory object |
| [in] | listener | Operation progress listener. Returns:
|
|
inlinenoexcept |
Async saves the updates made to a vehicle.
| [in] | vehicle | The Vehicle object |
| [in] | listener | Operation progress listener. Returns:
|