This example app demonstrates the following features:
- Retrieve territories from the database that match the specified search filter.
When you run the example app, all territories in the database that contain the searchTerm will be retrieved. The searchTerm is a string used to search for territories, and it is matched against each field in the territory's object.
- Create two
vrp::Territoryobjects with different shapes (circle and polygon) and set the desired fields (name, type, color, etc.). - Create a
ProgressListener,vrp::Service, and avrp::TerritoryList. - Call the
addTerritory()method from thevrp::Serviceusing thevrp::TerritoryandProgressListener, and wait for the operation to complete. - After adding the territories, call the
getTerritories()method from thevrp::Serviceusing the list from step 2.) and theProgressListener. - Once the operation is complete, the list from step 2.) will be populated with territories that match the search criteria.