addPoi method

void addPoi(
  1. PointOfInterest poi
)

Adds a Point of Interest to the in-memory collection.

poi The POI to add to the datastore

Implementation

void addPoi(PointOfInterest poi) {
  pointOfInterests.add(poi);
}