This example app demonstrates the following features:
- Retrieve orders from the database that match the specified search filter.
When you run the example app, all orders from the database that contain the searchTerm will be retrieved. The searchTerm is a string used to search for orders, and it is matched against each field in the order object.
- Initialize
vrp::Customerobjects with desired coordinates and details. - Create an
vrp::Orderobject for each customer, setting the relevant order details. - Create a
ProgressListener,vrp::Service, and anvrp::OrderList. - Add the initialized orders to the database by calling the
addOrder()method from thevrp::Service, and wait for the operation to complete. - After adding the orders, call the
getOrders()method from thevrp::Serviceusing the list from step 3.) and theProgressListener. - Once the operation completes, the list from step 3.) will be populated with orders that match the search criteria.