getContainingPolygons method
Checks if a location is inside any registered polygon.
Returns the list of polygon identifiers containing the point.
Implementation
List<String> getContainingPolygons(double latitude, double longitude) {
final containing = <String>[];
for (final polygon in _polygons.values) {
if (polygon.containsPoint(latitude, longitude)) {
containing.add(polygon.identifier);
}
}
return containing;
}