class RectGeofence implements Geofence {

    @Override
    public boolean contains(LatLng latLng) {
        double longitude = latLng.longitude;
        double latitude = latLng.latitude;

        double leftBorder = northWest.longitude;
        double rightBorder = southEast.longitude;

        double bottomBorder = southEast.latitude;
        double topBorder = northWest.latitude;

        return latitude >= bottomBorder && latitude <= topBorder && longitude >= leftBorder && longitude <= rightBorder;
    }

    public  RectGeofence(LatLng northWest, LatLng southEast);

}